diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-29 22:28:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-29 22:28:20 -0700 |
commit | c318040a3633475b591d9b9ece5877df415cf1d8 (patch) | |
tree | 9aeed281a958a00474f9025413b4c0860ac7a3a2 /http.c | |
parent | Merge branch 'sp/maint-http-info-refs-no-retry' (diff) | |
parent | Enable info/refs gzip decompression in HTTP client (diff) | |
download | tgif-c318040a3633475b591d9b9ece5877df415cf1d8.tar.xz |
Merge branch 'sp/maint-http-enable-gzip'
Allows a more common 'gzip' Accept-Encoding to be used.
* sp/maint-http-enable-gzip:
Enable info/refs gzip decompression in HTTP client
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -818,6 +818,7 @@ static int http_request(const char *url, void *result, int target, int options) curl_easy_setopt(slot->curl, CURLOPT_URL, url); curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, headers); + curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "gzip"); if (start_active_slot(slot)) { run_active_slot(slot); |