From 72f2542fb9a4e3b92b8d2c7c3a201d66f66e793c Mon Sep 17 00:00:00 2001
From: Brian McGroarty <soft@lindenlab.com>
Date: Fri, 17 Oct 2008 17:48:05 +0000
Subject: [PATCH] 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

---
 indra/llmessage/llhttpclient.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp
index 5bf0c08e67d..618d99dc482 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));
-- 
GitLab