mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Upstream: fixed $upstream_response_length without buffering.
Reported by Piotr Sikora.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user