# HG changeset patch # User Maxim Dounin # Date 1221868164 -14400 # Node ID 88272d0f29f9e6d9b05f55340fe0c68e87e37976 # Parent 27628b3310abe3aaa04ad7a46b3f310789b317fb 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. diff --git a/ngx_http_compose_filter_module.c b/ngx_http_compose_filter_module.c --- 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);