[libsoup/disable-brotli] Don't advertise br as an accepted encoding



commit 20c0c53d843684b714c2df94d2b46b7f8e77c269
Author: Patrick Griffis <pgriffis igalia com>
Date:   Mon Jun 3 07:22:25 2019 -0700

    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.

 libsoup/soup-content-decoder.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]