1
0
spegling av https://github.com/luanti-org/luanti.git synced 2025-11-06 10:15:19 +01:00

httpfetch: Enable gzip support

This commit is contained in:
sfan5
2017-11-04 22:19:27 +01:00
förälder 28841961ba
incheckning 21f3237fe9

Visa fil

@@ -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()) {