projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump copyright
[privoxy.git]
/
filters.c
diff --git
a/filters.c
b/filters.c
index
c891f4f
..
b490353
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-4,7
+4,7
@@
*
* Purpose : Declares functions to parse/crunch headers and pages.
*
*
* Purpose : Declares functions to parse/crunch headers and pages.
*
- * Copyright : Written by and Copyright (C) 2001-20
16
the
+ * Copyright : Written by and Copyright (C) 2001-20
20
the
* Privoxy team. https://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
* Privoxy team. https://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
@@
-2166,7
+2166,11
@@
static jb_err prepare_for_filtering(struct client_state *csp)
* If the body has a supported transfer-encoding,
* decompress it, adjusting size and iob->eod.
*/
* If the body has a supported transfer-encoding,
* decompress it, adjusting size and iob->eod.
*/
- if (csp->content_type & (CT_GZIP|CT_DEFLATE))
+ if ((csp->content_type & (CT_GZIP|CT_DEFLATE))
+#ifdef FEATURE_BROTLI
+ || (csp->content_type & CT_BROTLI)
+#endif
+ )
{
if (0 == csp->iob->eod - csp->iob->cur)
{
{
if (0 == csp->iob->eod - csp->iob->cur)
{
@@
-2184,11
+2188,14
@@
static jb_err prepare_for_filtering(struct client_state *csp)
else
{
/*
else
{
/*
- * Unset
CT_GZIP and CT_DEFLATE to remember not
- *
to
modify the Content-Encoding header later.
+ * Unset
content types to remember not to
+ * modify the Content-Encoding header later.
*/
csp->content_type &= ~CT_GZIP;
csp->content_type &= ~CT_DEFLATE;
*/
csp->content_type &= ~CT_GZIP;
csp->content_type &= ~CT_DEFLATE;
+#ifdef FEATURE_BROTLI
+ csp->content_type &= ~CT_BROTLI;
+#endif
}
}
#endif
}
}
#endif