Permalink
Browse files

Allow compressed HTTP response to improve transfer speed and bandwidt…

…h utilization
  • Loading branch information...
1 parent fec82eb commit bb24353d80be57cee9538a282047c9e550394a0e @dynasticorpheus dynasticorpheus committed Oct 16, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 httpclient/HTTPClient.cpp
@@ -54,6 +54,7 @@ void HTTPClient::SetGlobalOptions(void *curlobj)
CURL *curl=(CURL *)curlobj;
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC|CURLAUTH_DIGEST);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_curl_data);
+ curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_USERAGENT, m_sUserAgent.c_str());
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, m_iConnectionTimeout);

0 comments on commit bb24353

Please sign in to comment.