summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
authorBrian McGroarty <soft@lindenlab.com>2008-10-17 17:48:05 +0000
committerBrian McGroarty <soft@lindenlab.com>2008-10-17 17:48:05 +0000
commit72f2542fb9a4e3b92b8d2c7c3a201d66f66e793c (patch)
tree657d84edaf4cd8107563f43733009c6f56cb0f63 /indra/llmessage
parentc95cd6f6b3f4cb882382340222897ad50299839c (diff)
DEV-22360 - Interim fix for VWR-9784: Unable to upload scripts - this will be replaced later with final code, but we need to unblock release
Diffstat (limited to 'indra/llmessage')
-rw-r--r--indra/llmessage/llhttpclient.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp
index 5bf0c08e67..618d99dc48 100644
--- a/indra/llmessage/llhttpclient.cpp
+++ b/indra/llmessage/llhttpclient.cpp
@@ -252,10 +252,13 @@ static void request(
// Check to see if we have already set Accept or not. If no one
// set it, set it to application/llsd+xml since that's what we
// almost always want.
- static const std::string ACCEPT("Accept");
- if(!headers.has(ACCEPT))
+ if( method != LLURLRequest::HTTP_PUT && method != LLURLRequest::HTTP_POST )
{
- req->addHeader("Accept: application/llsd+xml");
+ static const std::string ACCEPT("Accept");
+ if(!headers.has(ACCEPT))
+ {
+ req->addHeader("Accept: application/llsd+xml");
+ }
}
req->setCallback(new LLHTTPClientURLAdaptor(responder));