From ded2a7c1af0a03de2b749930230209ec56680c31 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 15 Feb 2010 19:38:59 +0000 Subject: fix $upstream_http_ variable prefix length --- src/http/ngx_http_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 150c4e2be..713df2230 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -494,7 +494,7 @@ ngx_http_get_variable(ngx_http_request_t *r, ngx_str_t *name, ngx_uint_t key, return NULL; } - if (ngx_strncmp(name->data, "upstream_http_", 10) == 0) { + if (ngx_strncmp(name->data, "upstream_http_", 14) == 0) { if (ngx_http_upstream_header_variable(r, vv, (uintptr_t) name) == NGX_OK) -- cgit