Mercurial > hg > nginx
changeset 5203:bfb99b75833b
Proxy: $proxy_internal_body_length fixed.
The $proxy_internal_body_length value might change during request lifetime,
notably if proxy_set_body used, and use of a cached value might result in
incorrect upstream requests.
Patch by Lanshun Zhou.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 11 May 2013 21:12:24 +0400 |
parents | 322434f13bd8 |
children | a64c8a5da336 |
files | src/http/modules/ngx_http_proxy_module.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c Sat May 11 18:49:49 2013 +0400 +++ b/src/http/modules/ngx_http_proxy_module.c Sat May 11 21:12:24 2013 +0400 @@ -615,7 +615,8 @@ #endif { ngx_string("proxy_internal_body_length"), NULL, - ngx_http_proxy_internal_body_length_variable, 0, NGX_HTTP_VAR_NOHASH, 0 }, + ngx_http_proxy_internal_body_length_variable, 0, + NGX_HTTP_VAR_NOCACHEABLE|NGX_HTTP_VAR_NOHASH, 0 }, { ngx_null_string, NULL, NULL, 0, 0, 0 } };