mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
fix $upstream_http_ variable prefix length
This commit is contained in:
parent
070f0a865b
commit
ded2a7c1af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user