mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 06:16:18 +02:00
Update user agent to use "Vircadia" + update getUserAgent function to use the same.
This commit is contained in:
parent
3ccaa46563
commit
629b3c084c
2 changed files with 2 additions and 2 deletions
|
@ -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(" ", "-"); };
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue