aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-08-27 21:38:08 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-08-27 21:38:08 +0400
commit31c35adfe1e0e5141893a52c7961f2f5df3c7c4c (patch)
treef0eed2dbd6195af8692201e1d80a698757532555 /src
parent8cf734c7b4f2573c5220b5a6b2c8cb24bb459c04 (diff)
downloadnginx-31c35adfe1e0e5141893a52c7961f2f5df3c7c4c.tar.gz
nginx-31c35adfe1e0e5141893a52c7961f2f5df3c7c4c.zip
Variables: updated list of prefixes in ngx_http_rewrite_set().
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_rewrite_module.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c
index 4081f8774..f24119645 100644
--- a/src/http/modules/ngx_http_rewrite_module.c
+++ b/src/http/modules/ngx_http_rewrite_module.c
@@ -930,7 +930,11 @@ ngx_http_rewrite_set(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (v->get_handler == NULL
&& ngx_strncasecmp(value[1].data, (u_char *) "http_", 5) != 0
&& ngx_strncasecmp(value[1].data, (u_char *) "sent_http_", 10) != 0
- && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0)
+ && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0
+ && ngx_strncasecmp(value[1].data, (u_char *) "cookie_", 7) != 0
+ && ngx_strncasecmp(value[1].data, (u_char *) "upstream_cookie_", 16)
+ != 0
+ && ngx_strncasecmp(value[1].data, (u_char *) "arg_", 4) != 0)
{
v->get_handler = ngx_http_rewrite_var;
v->data = index;