use HIGH_FIDELITY_USER_AGENT for DataWebPage

This commit is contained in:
Stephen Birarda 2015-03-13 18:25:17 -07:00
parent 859f81cdd7
commit dcff4f5956
3 changed files with 2 additions and 4 deletions

View file

@ -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;
}

View file

@ -14,8 +14,6 @@
#include <qwebpage.h>
const QString INTERFACE_USER_AGENT = "HighFidelityInterface/1.0";
class DataWebPage : public QWebPage {
public:
DataWebPage(QObject* parent = 0);

View file

@ -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);