mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
httpfetch: Enable gzip support
This commit is contained in:
parent
28841961ba
commit
21f3237fe9
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
|
||||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
|
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1);
|
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 1);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_ENCODING, "gzip");
|
||||||
|
|
||||||
std::string bind_address = g_settings->get("bind_address");
|
std::string bind_address = g_settings->get("bind_address");
|
||||||
if (!bind_address.empty()) {
|
if (!bind_address.empty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue