summaryrefslogtreecommitdiff
path: root/libsoup/soup-content-decoder.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2019-06-03 07:22:25 -0700
committerPatrick Griffis <pgriffis@igalia.com>2019-06-03 07:22:25 -0700
commit20c0c53d843684b714c2df94d2b46b7f8e77c269 (patch)
tree5a50797a72d12f86eb7aecb488fcc2d597b1fc25 /libsoup/soup-content-decoder.c
parent1c6f47df99cc5b2efe3d629c71c5d85a7871689c (diff)
downloadlibsoup-20c0c53d843684b714c2df94d2b46b7f8e77c269.tar.gz
Don't advertise br as an accepted encoding
There are some edge cases that can be hit by the brotli decoder. This will be resolved in the future but for now just function.
Diffstat (limited to 'libsoup/soup-content-decoder.c')
-rw-r--r--libsoup/soup-content-decoder.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsoup/soup-content-decoder.c b/libsoup/soup-content-decoder.c
index c485c6e6..811af454 100644
--- a/libsoup/soup-content-decoder.c
+++ b/libsoup/soup-content-decoder.c
@@ -173,7 +173,10 @@ soup_content_decoder_content_processor_init (SoupContentProcessorInterface *proc
/* This is constant for now */
#ifdef WITH_BROTLI
-#define ACCEPT_ENCODING_HEADER "gzip, deflate, br"
+/* Don't advertise br support atm until some edge cases are resolved:
+ https://gitlab.gnome.org/GNOME/libsoup/issues/146 */
+/* #define ACCEPT_ENCODING_HEADER "gzip, deflate, br" */
+#define ACCEPT_ENCODING_HEADER "gzip, deflate"
#else
#define ACCEPT_ENCODING_HEADER "gzip, deflate"
#endif