mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
Upstream: fixed $upstream_response_length without buffering.
Reported by Piotr Sikora.
This commit is contained in:
parent
c63b826d8b
commit
7a7650aeb1
@ -3307,7 +3307,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
|
||||
u->state->response_sec = tp->sec - u->state->response_sec;
|
||||
u->state->response_msec = tp->msec - u->state->response_msec;
|
||||
|
||||
if (u->pipe) {
|
||||
if (u->pipe && u->pipe->read_length) {
|
||||
u->state->response_length = u->pipe->read_length;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user