commit | 9014efdadfd9ba80a5f3829364551fcdf44d1213 | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Mon Apr 29 18:58:58 2013 +0400 |
committer | Ruslan Ermilov <ru@nginx.com> | Mon Apr 29 18:58:58 2013 +0400 |
tree | cb1897f614903761396aa919676791a0c57e0acd | |
parent | e565dbc6e02130cdf93d748ef84ecaa0f9df86fd [diff] |
Proxy: allocate $proxy_internal_body_length from request pool.
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index eadc8c4..892ee27 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c
@@ -2076,7 +2076,7 @@ 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;