diff options
author | sfan5 <sfan5@live.de> | 2017-11-04 22:19:27 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | 6808a3d144c6c8f4aa4f54196fe6cedbda1f0805 (patch) | |
tree | 83407b16bfc1784fa87bccddc1b081ee40b399d8 /src | |
parent | 4d9bf75d3ab6a181b3113c3231d2e41245795a60 (diff) | |
download | minetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.tar.gz minetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.tar.bz2 minetest-6808a3d144c6c8f4aa4f54196fe6cedbda1f0805.zip |
httpfetch: Enable gzip support
Diffstat (limited to 'src')
-rw-r--r-- | src/httpfetch.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 3b3f5d331..f7d20100d 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -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()) { |