From d8e36c520e86eba6748e58824c30eb8a725d2450 Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Sat, 3 Aug 2024 15:30:53 +0200 Subject: [PATCH] Use HTTP compressed encoding when available This reduces network traffic by about 50%. --- src/http/http.c | 2 ++ 1 file changed, 2 insertions(+) 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()); -- 2.39.5