mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +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 {
|
||||
return INTERFACE_USER_AGENT;
|
||||
return HIGH_FIDELITY_USER_AGENT;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include <qwebpage.h>
|
||||
|
||||
const QString INTERFACE_USER_AGENT = "HighFidelityInterface/1.0";
|
||||
|
||||
class DataWebPage : public QWebPage {
|
||||
public:
|
||||
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;
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue