diff --git a/src/http/modules/ngx_http_proxy_v2_module.c b/src/http/modules/ngx_http_proxy_v2_module.c index 762c1889b..e30a9da7b 100644 --- a/src/http/modules/ngx_http_proxy_v2_module.c +++ b/src/http/modules/ngx_http_proxy_v2_module.c @@ -983,6 +983,10 @@ ngx_http_proxy_v2_body_output_filter(void *data, ngx_chain_t *in) ngx_free_chain(r->pool, ln); } + + for (ln = ctx->busy; ln; ln = ln->next) { + ln->buf->pos = ln->buf->last; + } } if (in) {