aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-09-02 14:01:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-09-02 14:01:58 +0000
commit31e6fc82cc3a9d676d74b34248e4e6f99633f28e (patch)
tree653616f0f1bae29e8256fafc243f0cf4e772c14b
parent4db3b3e2c47edff048af5a4b82a94521b7206991 (diff)
downloadnginx-31e6fc82cc3a9d676d74b34248e4e6f99633f28e.tar.gz
nginx-31e6fc82cc3a9d676d74b34248e4e6f99633f28e.zip
gzip_disable compiled always the first pattern only
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
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) {