]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: hpack: fix encoding of "accept-ranges" field
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Nov 2018 03:47:38 +0000 (04:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Nov 2018 03:47:38 +0000 (04:47 +0100)
commit4bf194cbdbcda8ec4ce83d7f12d2fe9b08483c94
treeadb67853beaed2089e0cf2fed851140986e03d14
parent16dd1b3ead17339a1addf2edb6dff5f731876c54
BUG/MEDIUM: hpack: fix encoding of "accept-ranges" field

James Brown reported that when an "accept-ranges" header field is sent
through haproxy and converted from HTTP/1.1 to H2, it's mis-encoded as
"accept-language". It happens that it's one of the few very common header
fields encoded using its index value and that this index value was misread
in the spec as 17 instead of 18, resulting in the wrong name being sent.
Thanks to Lukas for spotting the issue in the HPACK encoder itself.

This fix must be backported to 1.8.
src/hpack-enc.c