httpfetch: Enable gzip support
authorsfan5 <sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000 (22:19 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000 (17:32 +0200)
src/httpfetch.cpp

index 3b3f5d33126d11a0da4b84132f14cfa1802c1fcd..f7d20100dc21f5bc57e20dd72e7a811363b2d458 100644 (file)
@@ -248,6 +248,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()) {