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/transfer.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 32e8702e6..718139b32 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -756,7 +756,6 @@ static CURLcode readwrite_data(struct SessionHandle *data, result = Curl_unencode_gzip_write(conn, k, nread); break; - case COMPRESS: default: failf (data, "Unrecognized content encoding type. " "libcurl understands `identity', `deflate' and `gzip' " -- cgit v1.2.3