Hi Olivier,

On Thu, May 28, 2020 at 09:44:13AM +0200, Olivier D wrote:
> Hello,
> 
> 
> Le jeu. 28 mai 2020 à 09:17, Willy Tarreau <[email protected]> a écrit :
> 
> >     http-request del-header range if { req.hdr_cnt(range) gt 1 }
> >
> 
> This will only filter if header "Range" is present multiple times, not this
> one :
> Range: bytes=0-,0-,0-,0-
> 
> Am I correct ?

No you're not :-)  hdr_cnt() counts *values*. So :

  Range: bytes=0-,0-,0-,0-

decomposes as the following values around the comma delimiter:

  "bytes=0-", "0-", "0-", "0-"

And actually if you'd send several Range headers with such values they
could be remerged and interpreted as above. So in this case it's quite
convenient for us.

Willy

Reply via email to