]> git.kaiwu.me - haproxy.git/commit
MINOR: h2: Set flags about the request's scheme on the start-line
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 08:25:47 +0000 (10:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 09:13:32 +0000 (11:13 +0200)
commita9a5c04c23cc6aed143ac9d0aa9f1709718a3462
tree6ece5d0613a2360e844db837c3d8609a0be30ccb
parente21c01637a0ded1244774efa5b8bcdf39d221eec
MINOR: h2: Set flags about the request's scheme on the start-line

The flag HTX_SL_F_HAS_SCHM is always set because H2 requests have always an
explicit scheme. Then, the pseudo-header ":scheme" is tested. If it is set to
"http", the flag HTX_SL_F_SCHM_HTTP is set. Otherwise, for all other cases, the
flag HTX_SL_F_SCHM_HTTPS is set. For now, it seems reasonable to have a fallback
on the scheme "https".
src/h2.c