mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 12:19:54 +02:00
Update user agents.
This commit is contained in:
parent
ad2c3f08e6
commit
647b45323e
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ Item {
|
||||||
if (webViewCoreUserAgent !== undefined) {
|
if (webViewCoreUserAgent !== undefined) {
|
||||||
webViewCore.profile.httpUserAgent = webViewCoreUserAgent
|
webViewCore.profile.httpUserAgent = webViewCoreUserAgent
|
||||||
} else {
|
} else {
|
||||||
webViewCore.profile.httpUserAgent += " (HighFidelityInterface)";
|
webViewCore.profile.httpUserAgent += " (VircadiaInterface)";
|
||||||
}
|
}
|
||||||
// Ensure the JS from the web-engine makes it to our logging
|
// Ensure the JS from the web-engine makes it to our logging
|
||||||
webViewCore.javaScriptConsoleMessage.connect(function(level, message, lineNumber, sourceID) {
|
webViewCore.javaScriptConsoleMessage.connect(function(level, message, lineNumber, sourceID) {
|
||||||
|
|
|
@ -85,7 +85,7 @@ void RequestFilters::interceptHFWebEngineRequest(QWebEngineUrlRequestInfo& info,
|
||||||
static const QString USER_AGENT = "User-Agent";
|
static const QString USER_AGENT = "User-Agent";
|
||||||
const QString tokenStringMobile{ NetworkingConstants::MOBILE_USER_AGENT };
|
const QString tokenStringMobile{ NetworkingConstants::MOBILE_USER_AGENT };
|
||||||
const QString tokenStringMetaverse{ NetworkingConstants::METAVERSE_USER_AGENT };
|
const QString tokenStringMetaverse{ NetworkingConstants::METAVERSE_USER_AGENT };
|
||||||
const QString tokenStringLimitedCommerce{ "Chrome/48.0 (HighFidelityInterface limitedCommerce)" };
|
const QString tokenStringLimitedCommerce{ "Chrome/48.0 (VircadiaInterface limitedCommerce)" };
|
||||||
|
|
||||||
const QString tokenString = !isAuthable ? tokenStringMobile : (accountManager->getLimitedCommerce() ? tokenStringLimitedCommerce : tokenStringMetaverse);
|
const QString tokenString = !isAuthable ? tokenStringMobile : (accountManager->getLimitedCommerce() ? tokenStringLimitedCommerce : tokenStringMetaverse);
|
||||||
info.setHttpHeader(USER_AGENT.toLocal8Bit(), tokenString.toLocal8Bit());
|
info.setHttpHeader(USER_AGENT.toLocal8Bit(), tokenString.toLocal8Bit());
|
||||||
|
|
Loading…
Reference in a new issue