# HG changeset patch # User Igor Sysoev # Date 1190575305 0 # Node ID 95e76183ec4f760415306de258b6e64d87dc611b # Parent 85e12fc612116380ce6cb61266daf4c17581ae3d r1469 merge: read EOF of header only responses in non-buffered proxying diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1488,6 +1488,11 @@ ngx_http_upstream_send_response(ngx_http ngx_http_upstream_finalize_request(r, u, 0); return; } + + if (u->peer.connection->read->ready) { + ngx_http_upstream_process_non_buffered_body( + u->peer.connection->read); + } } return;