changeset 5188:886800caf360

Proxy: allocate $proxy_internal_body_length from request pool.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 29 Apr 2013 18:58:58 +0400
parents f1daa0356a1d
children cef7b42d50b3
files src/http/modules/ngx_http_proxy_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -2076,7 +2076,7 @@ ngx_http_proxy_internal_body_length_vari
     v->no_cacheable = 0;
     v->not_found = 0;
 
-    v->data = ngx_pnalloc(r->connection->pool, NGX_OFF_T_LEN);
+    v->data = ngx_pnalloc(r->pool, NGX_OFF_T_LEN);
 
     if (v->data == NULL) {
         return NGX_ERROR;