aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-12-20 15:30:35 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-12-20 15:30:35 +0100
commite639d4ca4d794c222dde4680d9ff35053f501042 (patch)
treed0e1f6e38f328e0af4bc2d14b50bca0ac5e25c3d
parent9c6a6be88230bf8237f70678a164aa42555d1238 (diff)
brotli: allow compiling with version 0.6.0.
Some error codes were not yet defined in brotli 0.6.0: do not issue code for them in this case.
-rw-r--r--lib/content_encoding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index 3d061375c..c2ba26972 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -546,8 +546,12 @@ static CURLcode brotli_map_error(BrotliDecoderErrorCode be)
case BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:
case BROTLI_DECODER_ERROR_FORMAT_PADDING_1:
case BROTLI_DECODER_ERROR_FORMAT_PADDING_2:
+#ifdef BROTLI_DECODER_ERROR_COMPOUND_DICTIONARY
case BROTLI_DECODER_ERROR_COMPOUND_DICTIONARY:
+#endif
+#ifdef BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET
case BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:
+#endif
case BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:
return CURLE_BAD_CONTENT_ENCODING;
case BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: