it seems a bug in ngx_http_gzip_disable function.

jin huang jindongh at
Mon Oct 11 08:55:50 MSD 2010

Hello everyone,

In ngx_http_gzip_disable function of http/ngx_http_core_module.c,
The code is here:

    for (i = 1; i < cf->args->nelts; i++) {        if
(ngx_strcmp(value[1].data, "msie6") == 0) {
clcf->gzip_disable_msie6 = 1;            continue;        }

It used value[1] to compare with "msie6", which I think "1" is a misspell of
"i". If it is indeed 1, then I think maybe the if statement should be
located outside the for loop.

Thank you for taking the time to read.

Best regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list