summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-08-22 10:24:32 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-08-22 10:24:32 -0700
commit67b315c50317f86bfcbdd20ad8070a4316a0b52f (patch)
tree03f32b5ba8d0ad51a09472bc3534468227791fc8 /common
parentc6a947de127ca1bb224bf1c0e74265300981423c (diff)
downloadqtlocation-mapboxgl-67b315c50317f86bfcbdd20ad8070a4316a0b52f.tar.gz
Indicate gzip support as well as deflate
libcurl supports both: http://curl.haxx.se/dev/readme-encoding.html
Diffstat (limited to 'common')
-rw-r--r--common/curl_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/curl_request.cpp b/common/curl_request.cpp
index 88b7712f66..416ed90cd1 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);
}