Le jeu. 28 mai 2020 à 09:48, Willy Tarreau <w...@1wt.eu> a écrit : > 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. >
My bad :( You made me realize I never used correctly this function. I was "counting" duplicate headers with it, and it worked because headers are merged and final behaviour matches what I was expecting. Thank you ! Olivier