]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: complete HTTP/3 request scheme encoding
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 May 2025 09:48:00 +0000 (11:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 Jun 2025 16:11:09 +0000 (18:11 +0200)
commit235e818fa19f6015e0a57a5ebb2cad1037919ab7
treeed9023e134c1e317ecd77839d60b77a6f34af972
parenta0912cf914d6292ddd5944ee2d81587b24c61580
MINOR: h3: complete HTTP/3 request scheme encoding

Previously, scheme was always set to https when transcoding an HTX
start-line into a HTTP/3 request. Change this so this conversion is now
fully compliant.

If no scheme is specified by the client, which is what happens most of
the time with HTTP/1, https is set for the HTTP/3 request. Else, reuse
the scheme requested by the client.

If either https or http is set, qpack_encode_scheme will encode it using
entry from QPACK static table. Else, a full literal field line with name
ref is used instead as the scheme value is specified as-is.
include/haproxy/qpack-enc.h
src/h3.c
src/qpack-enc.c