[nginx] Variables: updated list of prefixes in ngx_http_rewrite_...
Maxim Dounin
mdounin at mdounin.ru
Wed Aug 27 17:46:16 UTC 2014
details: http://hg.nginx.org/nginx/rev/16a371063d20
branches:
changeset: 5816:16a371063d20
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed Aug 27 21:38:08 2014 +0400
description:
Variables: updated list of prefixes in ngx_http_rewrite_set().
diffstat:
src/http/modules/ngx_http_rewrite_module.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c
--- 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
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;
More information about the nginx-devel
mailing list