comparison ngx_http_compose_filter_module.c @ 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
comparison
equal deleted inserted replaced
6:27628b3310ab 7:88272d0f29f9
218 ngx_http_set_ctx(r, ctx, ngx_http_compose_filter_module); 218 ngx_http_set_ctx(r, ctx, ngx_http_compose_filter_module);
219 219
220 if (len != -1) { 220 if (len != -1) {
221 r->allow_ranges = 1; 221 r->allow_ranges = 1;
222 r->late_ranges = 1; 222 r->late_ranges = 1;
223 r->headers_out.status_line.len = 0;
223 224
224 } else { 225 } else {
225 ngx_http_clear_accept_ranges(r); 226 ngx_http_clear_accept_ranges(r);
226 } 227 }
227 228