From bc583f99affc17a9ca3eac02525e1774e0a1b08c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 26 Dec 2005 10:26:39 +0000 Subject: [PATCH] - fix flags mask --- http_encoding_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_encoding_api.c b/http_encoding_api.c index f896be4..6f49ee1 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -657,7 +657,7 @@ void _http_ob_deflatehandler(char *output, uint output_len, char **handled_outpu break; } - flags |= (G->send.deflate.start_flags &~ 0xf); + flags |= (G->send.deflate.start_flags &~ 0xf0); G->send.deflate.stream = http_encoding_deflate_stream_init(NULL, flags); } @@ -695,7 +695,7 @@ void _http_ob_inflatehandler(char *output, uint output_len, char **handled_outpu zend_error(E_ERROR, "ob_inflatehandler() can only be used once"); return; } - G->send.inflate.stream = http_encoding_inflate_stream_init(NULL, (HTTP_G(send).inflate.start_flags &~ 0xf)); + G->send.inflate.stream = http_encoding_inflate_stream_init(NULL, (HTTP_G(send).inflate.start_flags &~ 0xf0)); } if (G->send.inflate.stream) { -- 2.30.2