summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-09-29 22:28:20 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-29 22:28:20 -0700
commitc318040a3633475b591d9b9ece5877df415cf1d8 (patch)
tree9aeed281a958a00474f9025413b4c0860ac7a3a2 /http.c
parentMerge branch 'sp/maint-http-info-refs-no-retry' (diff)
parentEnable info/refs gzip decompression in HTTP client (diff)
downloadtgif-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index 9bac1d89fd..345c171c5f 100644
--- a/http.c
+++ b/http.c
@@ -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);