From: Job Snijders Date: Sat, 3 Aug 2024 13:30:53 +0000 (+0200) Subject: Use HTTP compressed encoding when available X-Git-Tag: 1.6.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F143%2Fhead;p=thirdparty%2FFORT-validator.git Use HTTP compressed encoding when available This reduces network traffic by about 50%. --- diff --git a/src/http/http.c b/src/http/http.c index bd4069b5..cfbcd356 100644 --- a/src/http/http.c +++ b/src/http/http.c @@ -153,6 +153,8 @@ http_easy_init(struct http_handler *handler, curl_off_t ims) setopt_str(result, CURLOPT_USERAGENT, config_get_http_user_agent()); + setopt_str(result, CURLOPT_ACCEPT_ENCODING, ""); + setopt_long(result, CURLOPT_FOLLOWLOCATION, 1); setopt_long(result, CURLOPT_MAXREDIRS, config_get_max_redirs());