# HG changeset patch # User Maxim Dounin # Date 1217805786 -14400 # Node ID b85e679606f4779a7ebb0b05db0e174a25273608 # Parent 48cdd1bfa48ee02622bf4398d1345b3208c61369 Fix first-byte-pos parsing in non-first range. diff --git a/ngx_http_bytes_filter_module.c b/ngx_http_bytes_filter_module.c --- a/ngx_http_bytes_filter_module.c +++ b/ngx_http_bytes_filter_module.c @@ -152,6 +152,7 @@ ngx_http_bytes_header_filter(ngx_http_re state = sw_last_byte_pos; break; } + start = 0; state = sw_first_byte_pos_n; /* fall through */