jrgp / linfo

Linfo PHP Server Health Status
MIT License
361 stars 73 forks source link

ERR_CONTENT_DECODING_FAILED on windows #89

Closed JohnAdib closed 6 years ago

JohnAdib commented 6 years ago

Hi Its better to add some documentation about running on windows!

I have ERR_CONTENT_DECODING_FAILED error and after some search found that is because force gzip on linfo.

By enable zlib.output_compression in php.ini its working. but maybe it's better to describe this or disable force gzip in request header.

jrgp commented 6 years ago

Probably would be a good idea to use init_get() or similar to evaluate the value of zlib.output_compression at runtime to decide whether to do ob_start with the ob_gzhandler method. Or maybe don't use ob_gzhandler at all and find some other way of doing it depending on what the client requests.

Gummibeer commented 6 years ago

For me, in my setups, nginx is responsible for gzip - and I don't see a reason why PHP should do this. It will/could lead to a double work cause nginx have to stay with this setting for css, js and image files.

jrgp commented 6 years ago

Should be fixed per https://github.com/jrgp/linfo/commit/a2c8662805333c4921b9b40d4d6c333b0a63fbea

Please confirm.

JohnAdib commented 6 years ago

yep;) fixed, thanks.