From dcff4f59563e1e91fe4348d8e08ad0fbcd5deb38 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 13 Mar 2015 18:25:17 -0700 Subject: [PATCH] use HIGH_FIDELITY_USER_AGENT for DataWebPage --- interface/src/ui/DataWebPage.cpp | 2 +- interface/src/ui/DataWebPage.h | 2 -- libraries/shared/src/SharedUtil.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/interface/src/ui/DataWebPage.cpp b/interface/src/ui/DataWebPage.cpp index 2aa5cfdb8a..bec2c98f55 100644 --- a/interface/src/ui/DataWebPage.cpp +++ b/interface/src/ui/DataWebPage.cpp @@ -48,5 +48,5 @@ bool DataWebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkReques } QString DataWebPage::userAgentForUrl(const QUrl& url) const { - return INTERFACE_USER_AGENT; + return HIGH_FIDELITY_USER_AGENT; } diff --git a/interface/src/ui/DataWebPage.h b/interface/src/ui/DataWebPage.h index a9349f1d5f..c1c343a216 100644 --- a/interface/src/ui/DataWebPage.h +++ b/interface/src/ui/DataWebPage.h @@ -14,8 +14,6 @@ #include -const QString INTERFACE_USER_AGENT = "HighFidelityInterface/1.0"; - class DataWebPage : public QWebPage { public: DataWebPage(QObject* parent = 0); diff --git a/libraries/shared/src/SharedUtil.h b/libraries/shared/src/SharedUtil.h index f09ff9bd72..ba3e1b628b 100644 --- a/libraries/shared/src/SharedUtil.h +++ b/libraries/shared/src/SharedUtil.h @@ -68,7 +68,7 @@ static const quint64 USECS_PER_SECOND = USECS_PER_MSEC * MSECS_PER_SECOND; const int BITS_IN_BYTE = 8; // Use a custom User-Agent to avoid ModSecurity filtering, e.g. by hosting providers. -const QByteArray HIGH_FIDELITY_USER_AGENT = "Mozilla/5.0 (HighFidelity)"; +const QByteArray HIGH_FIDELITY_USER_AGENT = "HighFidelity/1.0"; quint64 usecTimestampNow(bool wantDebug = false); void usecTimestampNowForceClockSkew(int clockSkew);