Mercurial > hg > nginx
changeset 3004:4121acaf7a04
fix handling "Last-Modified" and "Accept-Ranges" for upstream responses
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Jul 2009 13:14:45 +0000 |
parents | b630e7d095b3 |
children | 5bc8811728f8 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Mon Jul 27 12:06:12 2009 +0000 +++ b/src/http/ngx_http_upstream.c Mon Jul 27 13:14:45 2009 +0000 @@ -3301,10 +3301,11 @@ *ho = *h; + r->headers_out.last_modified = ho; + #if (NGX_HTTP_CACHE) if (r->upstream->cacheable) { - r->headers_out.last_modified = ho; r->headers_out.last_modified_time = ngx_http_parse_time(h->value.data, h->value.len); } @@ -3428,6 +3429,8 @@ *ho = *h; + r->headers_out.accept_ranges = ho; + return NGX_OK; }