changeset 7:88272d0f29f9

Make sure upstream's status line won't be reused. Range filter may change status to 206 Partial Content, but if we got status line from upstream this won't have any effect on status sent to client. Clear r->status_line when enabling range filter.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 20 Sep 2008 03:49:24 +0400
parents 27628b3310ab
children 3fb3e1cbffd5
files ngx_http_compose_filter_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ngx_http_compose_filter_module.c
+++ b/ngx_http_compose_filter_module.c
@@ -220,6 +220,7 @@ ngx_http_compose_header_filter(ngx_http_
     if (len != -1) {
         r->allow_ranges = 1;
         r->late_ranges = 1;
+        r->headers_out.status_line.len = 0;
 
     } else {
         ngx_http_clear_accept_ranges(r);