From: Michael Wallner Date: Mon, 26 Dec 2005 10:26:39 +0000 (+0000) Subject: - fix flags mask X-Git-Tag: RELEASE_0_21_0~32 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bc583f99affc17a9ca3eac02525e1774e0a1b08c;p=m6w6%2Fext-http - fix flags mask --- 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) {