Fix for bug #23488 zlib.output_compression overrides vary header.

It was already fixed for ob_gzhandler (#24827).
This commit is contained in:
Stefan Roehrich 2003-09-10 08:47:37 +00:00
parent 546663f7cd
commit 2fc92e8fd8

View File

@ -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;
}
}