diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-02-15 19:38:59 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-02-15 19:38:59 +0000 |
commit | ded2a7c1af0a03de2b749930230209ec56680c31 (patch) | |
tree | ec09500356072d0866ee8861acfc86ae4173054a /src/http/ngx_http_variables.c | |
parent | 070f0a865b5d2fb9d20ee466dc01bec02086d02a (diff) | |
download | nginx-ded2a7c1af0a03de2b749930230209ec56680c31.tar.gz nginx-ded2a7c1af0a03de2b749930230209ec56680c31.zip |
fix $upstream_http_ variable prefix length
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |