summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-07 12:55:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-07 12:55:58 +0000
commit136dd8d1e692de0f5b96c6f1da51188737d630b0 (patch)
treebcecb503a3c4be424b1af67de90726a36431ea17 /src/http/ngx_http_upstream.c
parent9e5463364566f855a0f0b7d7725a4014995bd5e3 (diff)
downloadnginx-136dd8d1e692de0f5b96c6f1da51188737d630b0.tar.gz
nginx-136dd8d1e692de0f5b96c6f1da51188737d630b0.tar.bz2
use real file cache length, this fixes cache size counting for responses
without "Content-Length" header and 304 responses.
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 1e79a4f10..86c5af8f4 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2098,11 +2098,6 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
r->cache->date = now;
r->cache->body_start = (u_short) (u->buffer.pos - u->buffer.start);
- if (r->headers_out.content_length_n != -1) {
- r->cache->length = r->cache->body_start
- + r->headers_out.content_length_n;
- }
-
ngx_http_file_cache_set_header(r, u->buffer.start);
} else {