aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-11-28 10:00:47 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-11-28 10:00:47 +0000
commit1d13c0dd34d859d28ede439d248438a2288d39fc (patch)
tree2d28d1bb92cf9682798645b67bb39dbb5c04a914 /src
parent137355816326a2c6212ae1c0f30e23473ca11c3d (diff)
downloadnginx-1d13c0dd34d859d28ede439d248438a2288d39fc.tar.gz
nginx-1d13c0dd34d859d28ede439d248438a2288d39fc.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_headers_filter_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_headers_filter_module.c b/src/http/modules/ngx_http_headers_filter_module.c
index c846c5fea..754473355 100644
--- a/src/http/modules/ngx_http_headers_filter_module.c
+++ b/src/http/modules/ngx_http_headers_filter_module.c
@@ -145,6 +145,7 @@ ngx_http_headers_filter(ngx_http_request_t *r)
|| 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))