Skip to content

Commit

Permalink
Use HTTP compressed encoding when available
Browse files Browse the repository at this point in the history
This reduces network traffic by about 50%.
  • Loading branch information
Job Snijders authored and job committed Aug 3, 2024
1 parent 9b20b3a commit d8e36c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit d8e36c5

Please sign in to comment.