summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:29 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:29 +0900
commit13e8be95dbcf93f84154695b6a1be9718ff9665b (patch)
treef0a825371666e59c2525ee443be15481ba92f29f /http.c
parentMerge branch 'ma/unpack-trees-free-msgs' (diff)
parentremote-curl: accept compressed responses with protocol v2 (diff)
downloadtgif-13e8be95dbcf93f84154695b6a1be9718ff9665b.tar.xz
Merge branch 'bw/remote-curl-compressed-responses'
Our HTTP client code used to advertise that we accept gzip encoding from the other side; instead, just let cURL library to advertise and negotiate the best one. * bw/remote-curl-compressed-responses: remote-curl: accept compressed responses with protocol v2 remote-curl: accept all encodings supported by curl
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index deea47411a..b4bfbceaeb 100644
--- a/http.c
+++ b/http.c
@@ -1788,7 +1788,7 @@ static int http_request(const char *url,
curl_easy_setopt(slot->curl, CURLOPT_URL, url);
curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, headers);
- curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "gzip");
+ curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "");
ret = run_one_slot(slot, &results);