]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Use HTTP compressed encoding when available 143/head
authorJob Snijders <job@fastly.com>
Sat, 3 Aug 2024 13:30:53 +0000 (15:30 +0200)
committerJob Snijders <job@sobornost.net>
Sat, 3 Aug 2024 14:43:23 +0000 (14:43 +0000)
This reduces network traffic by about 50%.

src/http/http.c

index bd4069b56d29e2cef8ede34cce13a9a229742a4a..cfbcd356ba800b39e3a1c7e827822516000e7a76 100644 (file)
@@ -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());