mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
use HIGH_FIDELITY_USER_AGENT for DataWebPage
This commit is contained in:
parent
859f81cdd7
commit
dcff4f5956
3 changed files with 2 additions and 4 deletions
|
@ -48,5 +48,5 @@ bool DataWebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkReques
|
||||||
}
|
}
|
||||||
|
|
||||||
QString DataWebPage::userAgentForUrl(const QUrl& url) const {
|
QString DataWebPage::userAgentForUrl(const QUrl& url) const {
|
||||||
return INTERFACE_USER_AGENT;
|
return HIGH_FIDELITY_USER_AGENT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
#include <qwebpage.h>
|
#include <qwebpage.h>
|
||||||
|
|
||||||
const QString INTERFACE_USER_AGENT = "HighFidelityInterface/1.0";
|
|
||||||
|
|
||||||
class DataWebPage : public QWebPage {
|
class DataWebPage : public QWebPage {
|
||||||
public:
|
public:
|
||||||
DataWebPage(QObject* parent = 0);
|
DataWebPage(QObject* parent = 0);
|
||||||
|
|
|
@ -68,7 +68,7 @@ static const quint64 USECS_PER_SECOND = USECS_PER_MSEC * MSECS_PER_SECOND;
|
||||||
const int BITS_IN_BYTE = 8;
|
const int BITS_IN_BYTE = 8;
|
||||||
|
|
||||||
// Use a custom User-Agent to avoid ModSecurity filtering, e.g. by hosting providers.
|
// 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);
|
quint64 usecTimestampNow(bool wantDebug = false);
|
||||||
void usecTimestampNowForceClockSkew(int clockSkew);
|
void usecTimestampNowForceClockSkew(int clockSkew);
|
||||||
|
|
Loading…
Reference in a new issue