projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2884196
)
httpfetch: Enable gzip support
author
sfan5
<sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000
(22:19 +0100)
committer
sfan5
<sfan5@live.de>
Sat, 4 Nov 2017 21:19:27 +0000
(22:19 +0100)
src/httpfetch.cpp
patch
|
blob
|
history
diff --git
a/src/httpfetch.cpp
b/src/httpfetch.cpp
index 140bcbe9742fcca3dee0a40e6e5365230482c3b3..d8504ad64750b1d90f81eaf85b548c458c7dcdfa 100644
(file)
--- a/
src/httpfetch.cpp
+++ b/
src/httpfetch.cpp
@@
-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()) {