Mercurial > hg > nginx
changeset 4314:4a07bad0e2c5
Allowed add_header for proxied 206 replies.
It was working for nginx's own 206 replies as they are seen as 200 in the
headers filter module (range filter goes later in the headers filter chain),
but not for proxied replies.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 28 Nov 2011 10:00:47 +0000 |
parents | e7db97bfac25 |
children | 424a1ac6af43 |
files | src/http/modules/ngx_http_headers_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_headers_filter_module.c Mon Nov 28 09:15:33 2011 +0000 +++ b/src/http/modules/ngx_http_headers_filter_module.c Mon Nov 28 10:00:47 2011 +0000 @@ -145,6 +145,7 @@ || r != r->main || (r->headers_out.status != NGX_HTTP_OK && r->headers_out.status != NGX_HTTP_NO_CONTENT + && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT && r->headers_out.status != NGX_HTTP_MOVED_PERMANENTLY && r->headers_out.status != NGX_HTTP_MOVED_TEMPORARILY && r->headers_out.status != NGX_HTTP_NOT_MODIFIED))