aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2015-07-25 00:46:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-07-25 00:46:01 +0200
commitc5d060cab47037163fa803a598fedd9e989ca83b (patch)
treec9808861f8835d4bc12e7ce9e0858a05d32f477c /lib/transfer.c
parent98835eed29cd1f3451f0fb16ce1d4551a0e07df4 (diff)
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.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c1
1 files changed, 0 insertions, 1 deletions
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' "