diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-10-02 13:42:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-02 13:42:14 -0700 |
commit | 0a65df58a0d5b17a72edd4e6247be29ab8af2b09 (patch) | |
tree | 1594b2807979694e3bfe96de33ba28e9a5c982b6 /http.c | |
parent | 8a477ddf237978d3f5725b24e286616000ca2ffd (diff) | |
parent | aa90b9697f9275e4f9cb10d274495e7587f217c0 (diff) |
Merge branch 'sp/maint-http-enable-gzip' into maint
"git fetch" over http advertised that it supports "deflate", which
is much less common, and did not advertise more common "gzip" on its
Accept-Encoding header.
* 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); |