diff options
author | Adam Harvey <aharvey@php.net> | 2010-03-11 06:20:22 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2010-03-11 06:20:22 +0000 |
commit | f60946eb5430cd11daa9f88503dc9b1a9b7bd634 (patch) | |
tree | 46977265c6b762152a961a19d1e7ee7db9b76a51 /ext/zlib/zlib.c | |
parent | 2c3b1fd9207d7408814018de8abe2a692fac26a0 (diff) | |
download | php-git-f60946eb5430cd11daa9f88503dc9b1a9b7bd634.tar.gz |
Fixed bug #51269 (zlib.output_compression Overwrites Vary Header).
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index d6735445b1..69c05bbb24 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1056,7 +1056,7 @@ static void php_gzip_output_handler(char *output, uint output_len, char **handle sapi_add_header_ex(ZEND_STRL("Content-Encoding: deflate"), 1, 1 TSRMLS_CC); break; } - sapi_add_header_ex(ZEND_STRL("Vary: Accept-Encoding"), 1, 1 TSRMLS_CC); + sapi_add_header_ex(ZEND_STRL("Vary: Accept-Encoding"), 1, 0 TSRMLS_CC); } else { /* Disable compression if headers can not be set (Fix for bug #49816) */ ZLIBG(output_compression) = 0; |