# HG changeset patch # User Maxim Dounin # Date 1368292344 -14400 # Node ID 8c866e31bc3922f415d1223b2ec4312767a9743c # Parent 95a30deca8ad7bd59d399784f19f9545509b9bd7 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. diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -615,7 +615,8 @@ static ngx_http_variable_t ngx_http_pro #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 } };