mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fix for bug #23488 zlib.output_compression overrides vary header.
It was already fixed for ob_gzhandler (#24827).
This commit is contained in:
parent
546663f7cd
commit
2fc92e8fd8
@ -731,7 +731,7 @@ SAPI_API int sapi_send_headers(TSRMLS_D)
|
||||
if (len <= 0 || sapi_add_header(buf, len, 1) == FAILURE) {
|
||||
return FAILURE;
|
||||
}
|
||||
if (sapi_add_header("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1) == FAILURE) {
|
||||
if (sapi_add_header_ex("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1, 0 TSRMLS_CC) == FAILURE) {
|
||||
return FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user