]> git.kaiwu.me - nginx.git/commitdiff
gzip_disable compiled always the first pattern only
authorIgor Sysoev <igor@sysoev.ru>
Thu, 2 Sep 2010 14:01:58 +0000 (14:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 2 Sep 2010 14:01:58 +0000 (14:01 +0000)
src/http/ngx_http_core_module.c

index 53ea3f151ce30a68d87da170dd60c9364e2edf07..53cbf5f5caca5cf62d23c4ad021de799afc258db 100644 (file)
@@ -4400,7 +4400,7 @@ ngx_http_gzip_disable(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
             return NGX_CONF_ERROR;
         }
 
-        rc.pattern = value[1];
+        rc.pattern = value[i];
         rc.options = NGX_REGEX_CASELESS;
 
         if (ngx_regex_compile(&rc) != NGX_OK) {