]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: fix encoding of non-GET/POST methods
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 10:08:04 +0000 (11:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2018 10:08:04 +0000 (11:08 +0100)
commitac77b6f4411aa9438693f80ead8fd183f339dba7
tree8d0ea29c9ff92d26e2776cab28279ecdaaa190e2
parentb36a6d21db63dcdaf479939a5ff862cf71795175
BUG/MEDIUM: mux-h2: fix encoding of non-GET/POST methods

Jerome reported that outgoing H2 failed for methods different from GET
or POST. It turns out that the HPACK encoding is performed by hand in
the outgoing headers encoding function and that the data length was not
incremented to cover the literal method value, resulting in a corrupted
HEADERS frame.

Admittedly this code should move to the generic HPACK code.

No backport is needed.
src/mux_h2.c