Explorar o código

file-updater: Use transparent HTTP compression

Richard Stanway %!s(int64=6) %!d(string=hai) anos
pai
achega
dd3ed096f8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      deps/file-updater/file-updater/file-updater.c

+ 1 - 0
deps/file-updater/file-updater/file-updater.c

@@ -117,6 +117,7 @@ static bool do_http_request(struct update_info *info, const char *url,
 	curl_easy_setopt(info->curl, CURLOPT_WRITEDATA, info);
 	curl_easy_setopt(info->curl, CURLOPT_FAILONERROR, true);
 	curl_easy_setopt(info->curl, CURLOPT_NOSIGNAL, 1);
+	curl_easy_setopt(info->curl, CURLOPT_ACCEPT_ENCODING, "");
 
 	if (!info->remote_url) {
 		// We only care about headers from the main package file