Update user agent to use "Vircadia" + update getUserAgent function to use the same.

This commit is contained in:
Kasen IO 2020-07-10 00:08:46 -04:00
parent 3ccaa46563
commit 629b3c084c
2 changed files with 2 additions and 2 deletions

View file

@ -2614,7 +2614,7 @@ QString Application::getUserAgent() {
return userAgent;
}
QString userAgent = "Mozilla/5.0 (HighFidelityInterface/" + BuildInfo::VERSION + "; "
QString userAgent = NetworkingConstants::VIRCADIA_USER_AGENT + "/" + BuildInfo::VERSION + "; "
+ QSysInfo::productType() + " " + QSysInfo::productVersion() + ")";
auto formatPluginName = [](QString name) -> QString { return name.trimmed().replace(" ", "-"); };

View file

@ -32,7 +32,7 @@ namespace NetworkingConstants {
const QString AUTH_HOSTNAME_BASE = "highfidelity.com";
// Use a custom User-Agent to avoid ModSecurity filtering, e.g. by hosting providers.
const QByteArray VIRCADIA_USER_AGENT = "Mozilla/5.0 (HighFidelityInterface)";
const QByteArray VIRCADIA_USER_AGENT = "Mozilla/5.0 (VircadiaInterface)";
const QUrl BUILDS_XML_URL("https://highfidelity.com/builds.xml");
const QUrl MASTER_BUILDS_XML_URL("https://highfidelity.com/dev-builds.xml");