Indicate gzip support as well as deflate

libcurl supports both: http://curl.haxx.se/dev/readme-encoding.html
This commit is contained in:
John Firebaugh
2014-08-22 10:24:32 -07:00
parent c6a947de12
commit 67b315c503

View File

@@ -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);
}