From c5d060cab47037163fa803a598fedd9e989ca83b Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 25 Jul 2015 00:46:01 +0200 Subject: HTTP: ignore "Content-Encoding: compress" Currently, libcurl rejects responses with "Content-Encoding: compress" when CURLOPT_ACCEPT_ENCODING is set to "". I think that libcurl should treat the Content-Encoding "compress" the same as other Content-Encodings that it does not support, e.g. "bzip2". That means just ignoring it. --- lib/http_chunks.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/http_chunks.c') diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 80c0f9548..7e91b37dc 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -218,7 +218,6 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, (ssize_t)piece); break; - case COMPRESS: default: failf (conn->data, "Unrecognized content encoding type. " -- cgit v1.2.3