2021-08-23 10:11:05 +00:00
|
|
|
diff -up firefox-91.0.1/netwerk/protocol/http/nsHttpHandler.cpp.fedora-ua firefox-91.0.1/netwerk/protocol/http/nsHttpHandler.cpp
|
|
|
|
--- firefox-91.0.1/netwerk/protocol/http/nsHttpHandler.cpp.fedora-ua 2021-08-16 20:10:57.000000000 +0200
|
|
|
|
+++ firefox-91.0.1/netwerk/protocol/http/nsHttpHandler.cpp 2021-08-23 12:07:21.128772096 +0200
|
|
|
|
@@ -716,7 +716,7 @@ void nsHttpHandler::BuildUserAgent() {
|
|
|
|
// than if we didn't preallocate at all.
|
2019-01-28 13:53:26 +00:00
|
|
|
mUserAgent.SetCapacity(mLegacyAppName.Length() + mLegacyAppVersion.Length() +
|
2015-02-09 17:20:06 +00:00
|
|
|
#ifndef UA_SPARE_PLATFORM
|
2021-08-23 10:11:05 +00:00
|
|
|
- mPlatform.Length() +
|
|
|
|
+ mPlatform.Length() + 10 +
|
2015-02-09 17:20:06 +00:00
|
|
|
#endif
|
2019-01-28 13:53:26 +00:00
|
|
|
mOscpu.Length() + mMisc.Length() + mProduct.Length() +
|
|
|
|
mProductSub.Length() + mAppName.Length() +
|
2021-08-23 10:11:05 +00:00
|
|
|
@@ -735,6 +735,7 @@ void nsHttpHandler::BuildUserAgent() {
|
2019-01-28 13:53:26 +00:00
|
|
|
if (!mPlatform.IsEmpty()) {
|
|
|
|
mUserAgent += mPlatform;
|
|
|
|
mUserAgent.AppendLiteral("; ");
|
|
|
|
+ mUserAgent.AppendLiteral("Fedora; ");
|
|
|
|
}
|
2015-02-09 17:20:06 +00:00
|
|
|
#endif
|
2019-01-28 13:53:26 +00:00
|
|
|
if (!mCompatDevice.IsEmpty()) {
|