aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/newview/llviewermedia.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewermedia.cpp b/linden/indra/newview/llviewermedia.cpp
index 92ccf25..5bdb26f 100644
--- a/linden/indra/newview/llviewermedia.cpp
+++ b/linden/indra/newview/llviewermedia.cpp
@@ -40,6 +40,7 @@
40#include "llviewerimage.h" 40#include "llviewerimage.h"
41#include "llviewerwindow.h" 41#include "llviewerwindow.h"
42#include "llviewerimagelist.h" 42#include "llviewerimagelist.h"
43//#include "viewerversion.h"
43 44
44#include "llpluginclassmedia.h" 45#include "llpluginclassmedia.h"
45 46
@@ -241,13 +242,15 @@ LLViewerMediaImpl* LLViewerMedia::getMediaImplFromTextureID(const LLUUID& textur
241// static 242// static
242std::string LLViewerMedia::getCurrentUserAgent() 243std::string LLViewerMedia::getCurrentUserAgent()
243{ 244{
245 // Don't include version, channel, or skin -- MC
246
244 // Don't use user-visible string to avoid 247 // Don't use user-visible string to avoid
245 // punctuation and strange characters. 248 // punctuation and strange characters.
246 std::string skin_name = gSavedSettings.getString("SkinCurrent"); 249 //std::string skin_name = gSavedSettings.getString("SkinCurrent");
247 250
248 // Just in case we need to check browser differences in A/B test 251 // Just in case we need to check browser differences in A/B test
249 // builds. 252 // builds.
250 std::string channel = gSavedSettings.getString("VersionChannelName"); 253 //std::string channel = gSavedSettings.getString("VersionChannelName");
251 254
252 // append our magic version number string to the browser user agent id 255 // append our magic version number string to the browser user agent id
253 // See the HTTP 1.0 and 1.1 specifications for allowed formats: 256 // See the HTTP 1.0 and 1.1 specifications for allowed formats:
@@ -257,9 +260,9 @@ std::string LLViewerMedia::getCurrentUserAgent()
257 // http://www.mozilla.org/build/revised-user-agent-strings.html 260 // http://www.mozilla.org/build/revised-user-agent-strings.html
258 std::ostringstream codec; 261 std::ostringstream codec;
259 codec << "SecondLife/"; 262 codec << "SecondLife/";
260 codec << "C64 Basic V2"; //imprudence fixme : this isn't anybodys business anyway 263 codec << "C64 Basic V2";
261// codec << LL_VERSION_MAJOR << "." << LL_VERSION_MINOR << "." << LL_VERSION_PATCH << "." << LL_VERSION_BUILD; 264 //codec << ViewerVersion::getImpMajorVersion() << "." << ViewerVersion::getImpMinorVersion() << "." << ViewerVersion::getImpPatchVersion() << " " << ViewerVersion::getImpTestVersion();
262// codec << " (" << channel << "; " << skin_name << " skin)"; 265 //codec << " (" << channel << "; " << skin_name << " skin)";
263// llinfos << codec.str() << llendl; 266// llinfos << codec.str() << llendl;
264 267
265 return codec.str(); 268 return codec.str();