changeset 3753:9da3a04fc845

gzip_disable compiled always the first pattern only
author Igor Sysoev <igor@sysoev.ru>
date Thu, 02 Sep 2010 14:01:58 +0000
parents 6cde13492433
children 5f58badd13ed
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, ng
             return NGX_CONF_ERROR;
         }
 
-        rc.pattern = value[1];
+        rc.pattern = value[i];
         rc.options = NGX_REGEX_CASELESS;
 
         if (ngx_regex_compile(&rc) != NGX_OK) {