From: Igor Sysoev Date: Thu, 2 Sep 2010 14:01:58 +0000 (+0000) Subject: gzip_disable compiled always the first pattern only X-Git-Tag: release-0.8.50~4 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=31e6fc82cc3a9d676d74b34248e4e6f99633f28e;p=nginx.git gzip_disable compiled always the first pattern only --- diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 53ea3f151..53cbf5f5c 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -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) {