Bug #65391 [Opn]: Unable to send vary header user-agent when ob_start('ob_gzhandler') is called
| From: | yohgaki@php.net | Date: | Tue, 06 Aug 2013 04:52:55 +0000 |
| Subject: | Bug #65391 [Opn]: Unable to send vary header user-agent when ob_start('ob_gzhandler') is called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180735@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65391&edit=1
ID: 65391
Updated by: yohgaki@php.net
Reported by: nikcomestotalk at gmail dot com
Summary: Unable to send vary header user-agent when
ob_start('ob_gzhandler') is called
Status: Open
Type: Bug
-Package: Zlib related
+Package: Output Control
Operating System: any
PHP Version: 5.4.17
Block user comment: N
Private report: N
New Comment:
Reclassified as output control issue, since this is output issue.
Previous Comments:
------------------------------------------------------------------------
[2013-08-06 04:50:39] yohgaki@php.net
zlib module is the one writing Vary header.
------------------------------------------------------------------------
[2013-08-05 09:22:52] nikcomestotalk at gmail dot com
Description:
------------
ob_start('ob_gzhandler') is overwriting vary-header "Vary: User-
Agent,Accept,Accept-Encoding" to "Vary: Accept-Encoding"
Not using apache level gzip
Test script:
---------------
header("Vary: User-Agent,Accept,Accept-Encoding");
ob_start("ob_gzhandler");
ob_flush();
Client side response header
vary: Accept Encoding
Expected result:
----------------
Vary: User-Agent,Accept,Accept-Encoding
Actual result:
--------------
vary: Accept Encoding
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65391&edit=1