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
This commit is contained in:
@ -379,7 +379,7 @@ static int probe_rpc(struct rpc_state *rpc)
|
||||
curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_POST, 1);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_URL, rpc->service_url);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "");
|
||||
curl_easy_setopt(slot->curl, CURLOPT_ENCODING, NULL);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, "0000");
|
||||
curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDSIZE, 4);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, headers);
|
||||
@ -435,7 +435,7 @@ static int post_rpc(struct rpc_state *rpc)
|
||||
curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_POST, 1);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_URL, rpc->service_url);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "");
|
||||
curl_easy_setopt(slot->curl, CURLOPT_ENCODING, "gzip");
|
||||
|
||||
headers = curl_slist_append(headers, rpc->hdr_content_type);
|
||||
headers = curl_slist_append(headers, rpc->hdr_accept);
|
||||
|
||||
Reference in New Issue
Block a user