diff options
| author | Aaron Stone <stone@lindenlab.com> | 2011-04-01 16:36:00 -0700 | 
|---|---|---|
| committer | Aaron Stone <stone@lindenlab.com> | 2011-04-01 16:36:00 -0700 | 
| commit | e6c0615b97019cf9c8aee267513757c0c2510420 (patch) | |
| tree | 8e0ce8b3dbf4da86b868ac95860b9b9782648d6c | |
| parent | 983b49c31652b00f0659ef1a5a5d189681b1a826 (diff) | |
VWR-25376 Enable compression for GET and POST for Inventory and other capabilities.
| -rw-r--r-- | indra/llmessage/llurlrequest.cpp | 6 | 
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; | 
