diff options
author | Howard Stearns <aech@lindenlab.com> | 2022-01-24 16:52:29 +0000 |
---|---|---|
committer | Howard Stearns <aech@lindenlab.com> | 2022-01-24 16:52:29 +0000 |
commit | fec246a2e6d380971080d95446cc55059be01352 (patch) | |
tree | 358eca34c63a9256a26acadd0b3e379cb60dc0be /indra/newview/llxmlrpctransaction.cpp | |
parent | 67dc2924bf6f004326f8e22d1d92c4a071c946a4 (diff) | |
parent | 5ab34ccc5a5ec0abd6526b16379d7e29d8668ec4 (diff) |
Merged DRTVWR-544-maint into SL-316
Diffstat (limited to 'indra/newview/llxmlrpctransaction.cpp')
-rw-r--r-- | indra/newview/llxmlrpctransaction.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp index 32c8ce66a0..5c56a1d34f 100644 --- a/indra/newview/llxmlrpctransaction.cpp +++ b/indra/newview/llxmlrpctransaction.cpp @@ -40,6 +40,7 @@ #include "httpoptions.h" #include "httpheaders.h" #include "bufferarray.h" +#include "llversioninfo.h" #include "llviewercontrol.h" // Have to include these last to avoid queue redefinition! @@ -378,6 +379,15 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip, const httpHeaders->append(HTTP_OUT_HEADER_CONTENT_TYPE, HTTP_CONTENT_TEXT_XML); + std::string user_agent = llformat("%s %d.%d.%d (%d)", + LLVersionInfo::instance().getChannel().c_str(), + LLVersionInfo::instance().getMajor(), + LLVersionInfo::instance().getMinor(), + LLVersionInfo::instance().getPatch(), + LLVersionInfo::instance().getBuild()); + + httpHeaders->append(HTTP_OUT_HEADER_USER_AGENT, user_agent); + ///* Setting the DNS cache timeout to -1 disables it completely. //This might help with bug #503 */ //httpOpts->setDNSCacheTimeout(-1); |