summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAaron Stone <stone@lindenlab.com>2011-04-01 16:36:00 -0700
committerAaron Stone <stone@lindenlab.com>2011-04-01 16:36:00 -0700
commite6c0615b97019cf9c8aee267513757c0c2510420 (patch)
tree8e0ce8b3dbf4da86b868ac95860b9b9782648d6c /indra
parent983b49c31652b00f0659ef1a5a5d189681b1a826 (diff)
VWR-25376 Enable compression for GET and POST for Inventory and other capabilities.
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llurlrequest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llmessage/llurlrequest.cpp b/indra/llmessage/llurlrequest.cpp
index cb9d1c3731..28bd09fc4c 100644
--- a/indra/llmessage/llurlrequest.cpp
+++ b/indra/llmessage/llurlrequest.cpp
@@ -440,6 +440,9 @@ bool LLURLRequest::configure()
case HTTP_GET:
mDetail->mCurlRequest->setopt(CURLOPT_HTTPGET, 1);
mDetail->mCurlRequest->setopt(CURLOPT_FOLLOWLOCATION, 1);
+
+ // Set Accept-Encoding to allow response compression
+ mDetail->mCurlRequest->setoptString(CURLOPT_ENCODING, "");
rv = true;
break;
@@ -464,6 +467,9 @@ bool LLURLRequest::configure()
// Set the handle for an http post
mDetail->mCurlRequest->setPost(NULL, bytes);
+
+ // Set Accept-Encoding to allow response compression
+ mDetail->mCurlRequest->setoptString(CURLOPT_ENCODING, "");
rv = true;
break;