diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2013-04-11 13:49:13 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2013-04-11 13:49:13 +0000 |
commit | 7a7650aeb16ee21a5f596cd855c97066726c00a8 (patch) | |
tree | 2c91b696b629b4d23ee9ab7d877da8cc97058c81 /src | |
parent | c63b826d8b01922d9b239b9242b1585c773e81bd (diff) | |
download | nginx-7a7650aeb16ee21a5f596cd855c97066726c00a8.tar.gz nginx-7a7650aeb16ee21a5f596cd855c97066726c00a8.zip |
Upstream: fixed $upstream_response_length without buffering.
Reported by Piotr Sikora.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a7e88b777..45e2eb7b9 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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; } } |