read EOF of header only responses in non-buffered proxying

This commit is contained in:
Igor Sysoev 2007-09-09 18:32:53 +00:00
parent ec67b19ea0
commit 3dea919675

View File

@ -1490,6 +1490,11 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
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;