summaryrefslogtreecommitdiff
path: root/indra/llmessage/llhttpclient.cpp
diff options
context:
space:
mode:
authorKartic Krishnamurthy <drunkensufi@lindenlab.com>2007-08-08 00:55:57 +0000
committerKartic Krishnamurthy <drunkensufi@lindenlab.com>2007-08-08 00:55:57 +0000
commit52cb2aea8667056671b67a3c70eeefd00a061751 (patch)
treef68af9fa643127dd4c026ec5c95b41241dd279f3 /indra/llmessage/llhttpclient.cpp
parent057a5646c14d3a61a5743e7a0cb3d6276634619e (diff)
svn merge -r67131:67483 svn+ssh://svn/svn/linden/branches/Branch_1-18-1
Diffstat (limited to 'indra/llmessage/llhttpclient.cpp')
-rw-r--r--indra/llmessage/llhttpclient.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp
index c798e6473c..1763acaf8c 100644
--- a/indra/llmessage/llhttpclient.cpp
+++ b/indra/llmessage/llhttpclient.cpp
@@ -245,6 +245,7 @@ static void request(
LLURLRequest *req = new LLURLRequest(method, url);
req->requestEncoding("");
+ // Insert custom headers is the caller sent any
if (headers.isMap())
{
LLSD::map_const_iterator iter = headers.beginMap();
@@ -253,7 +254,17 @@ static void request(
for (; iter != end; ++iter)
{
std::ostringstream header;
+ //if the header is "Pragma" with no value
+ //the caller intends to force libcurl to drop
+ //the Pragma header it so gratuitously inserts
+ //Before inserting the header, force libcurl
+ //to not use the proxy (read: llurlrequest.cpp)
+ if ((iter->first == "Pragma") && (iter->second.asString() == ""))
+ {
+ req->useProxy(FALSE);
+ }
header << iter->first << ": " << iter->second.asString() ;
+ llinfos << "header = " << header.str() << llendl;
req->addHeader(header.str().c_str());
}
}