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/urldata.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index 06559229b..b1c2056c5 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -660,7 +660,6 @@ struct SingleRequest { #define IDENTITY 0 /* No encoding */ #define DEFLATE 1 /* zlib deflate [RFC 1950 & 1951] */ #define GZIP 2 /* gzip algorithm [RFC 1952] */ -#define COMPRESS 3 /* Not handled, added for completeness */ #ifdef HAVE_LIBZ zlibInitState zlib_init; /* possible zlib init state; -- cgit v1.2.3