On Wed, Aug 24, 2011 at 12:44:45PM +0200, Baptiste wrote:
>
> [...]
> Actually, this is slightly different.
> According to the Perl script, a single Range header is sent, but it is
> forge with a lot of range value.
> IE: "Range: 0-,5-1,5-2,5-3,[...]"
>
> Since there is no hdr_size ACLs for now, the only way is to use a
> hdr_reg to do this:
> reqidel ^Range if { hdr_reg(Range) ([0-9]+-[0-9]+,){10,} }
HTTP headers don't work like that. Range: 0-,5-,... is the same as
Range: 0-
Range: 5-
Range: ...
So hdr_cnt() should pick it up just fine, and the regex should not.
- Finn Arne