From 67b315c50317f86bfcbdd20ad8070a4316a0b52f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 22 Aug 2014 10:24:32 -0700 Subject: [PATCH] Indicate gzip support as well as deflate libcurl supports both: http://curl.haxx.se/dev/readme-encoding.html --- common/curl_request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/curl_request.cpp b/common/curl_request.cpp index 88b7712f6..416ed90cd 100644 --- a/common/curl_request.cpp +++ b/common/curl_request.cpp @@ -315,7 +315,7 @@ void async_add_cb(uv_async_t * /*async*/) { curl_easy_setopt(handle, CURLOPT_URL, (*req)->url.c_str()); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, curl_write_cb); curl_easy_setopt(handle, CURLOPT_WRITEDATA, &(*req)->res->body); - curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "deflate"); + curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip, deflate"); curl_easy_setopt(handle, CURLOPT_SHARE, curl_share); curl_multi_add_handle(curl_multi, handle); }