httpfetch: Enable gzip support
authorsfan5 <sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000 (22:19 +0100)
committersfan5 <sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000 (22:19 +0100)
src/httpfetch.cpp

index 140bcbe9742fcca3dee0a40e6e5365230482c3b3..d8504ad64750b1d90f81eaf85b548c458c7dcdfa 100644 (file)
@@ -246,6 +246,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
        curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
        curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1);
+       curl_easy_setopt(curl, CURLOPT_ENCODING, "gzip");
 
        std::string bind_address = g_settings->get("bind_address");
        if (!bind_address.empty()) {