diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-05-12 12:45:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-05-12 12:45:14 +0000 |
commit | c0197f19cfcec0dd1ade0648d123b9399a6a1959 (patch) | |
tree | 3ecaac4877588f350d755323cc53bab5e093869c /lib/content_encoding.h | |
parent | 3994d67eea975507e1ba0f180680d9e237ddacf0 (diff) | |
download | curl-c0197f19cfcec0dd1ade0648d123b9399a6a1959.tar.gz |
Dan Fandrich changed CURLOPT_ENCODING to select all supported encodings if
set to "". This frees the application from having to know which encodings
the library supports.
Diffstat (limited to 'lib/content_encoding.h')
-rw-r--r-- | lib/content_encoding.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/content_encoding.h b/lib/content_encoding.h index 348ceb154..dfc7097c4 100644 --- a/lib/content_encoding.h +++ b/lib/content_encoding.h @@ -20,6 +20,16 @@ * * $Id$ ***************************************************************************/ +#include "setup.h" + +/* + * Comma-separated list all supported Content-Encodings ('identity' is implied) + */ +#ifdef HAVE_LIBZ +#define ALL_CONTENT_ENCODINGS "deflate, gzip" +#else +#define ALL_CONTENT_ENCODINGS "identity" +#endif CURLcode Curl_unencode_deflate_write(struct SessionHandle *data, struct Curl_transfer_keeper *k, |