MINOR: mux-h2: Don't tests the start-line when sending HEADERS frame
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Jan 2021 10:39:43 +0000 (11:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Jan 2021 12:27:57 +0000 (13:27 +0100)
commit564981369b0550e97c4a03a68f8970cfc0da0220
tree965c68127f8e97d261474b79a65c05641bd02a1f
parent3702f78cf9f9db17b13ad637c25bd59370c3fadc
MINOR: mux-h2: Don't tests the start-line when sending HEADERS frame

When a HEADERS frame is sent, it is always when an HTX start-line block is
found. Thus, in h2s_bck_make_req_headers() and h2s_frt_make_resp_headers()
functions, it is useless to tests the start-line. Instead of being too
defensive, we use BUG_ON() now because it must not happen and must be
handled as a bug.

This patch should fix the issue #1086.
src/mux_h2.c