BUG/MEDIUM: mux-h2: reject non-101 2xx responses to Extended CONNECT
An Extended CONNECT (RFC8441) is converted to an upgrade request for an
H1 server, and a 101 response is converted to a 200, meaning that the
tunnel is established. But if the server ignores the upgrade and returns
a regular 2xx, it was forwarded as-is, so the client considered the
tunnel as established and took the payload for tunneled data.
Let's handle such a response as an error, as is already done for a 101
without Extended CONNECT.
This was introduced in 2.4 by commit
efe2276a9 ("MEDIUM: mux_h2:
generate Extended CONNECT response") and must be backported to all
supported versions.