Open brusch opened 9 years ago
In
HipHop VM 3.6.0-dev (rel)
Compiler: heads/master-0-g887af70ab3b502bf6761408ee5234dfcda103d43
the setting:
hhvm.server.gzip_compression_level = 0
doesn't seem to have an effect anymore, ... so there's no workaround anymore.
HHVM currently (Version 3.5.1) adds the following HTTP headers automatically:
But sometimes it's necessary / useful to decide in the acutual script if Content-Encoding/Transfer-Encoding is necessary or not and which values they should have.
It's also not possible to set the Content-Length header in a script because this gets overwritten by Transfer-Encoding: chunked.
Use-cases are:
So there should be the possibility to disable this feature on the fly (in the script) or it needs to have a better auto detection.
Following the comparison of Zend and HHVM
Zend:
HHVM
As you can see, ... HHVM adds another Content-Encoding header although there's already one set by the script and it removes the Content-Length header and adds Transfer-Encoding: chunked instead.
A workaround for now is to add the following configuration into the server.ini - but this disables this feature completely which isn't optimal in my opinion: