]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Set flags about the request's scheme on the start-line
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 08:31:25 +0000 (10:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 09:13:32 +0000 (11:13 +0200)
commit42993a86c9ee1cd6e921395dd446617d79b64a18
tree3d574d6dbf3dc3162444304b91036c5b79ca186e
parenta9a5c04c23cc6aed143ac9d0aa9f1709718a3462
MINOR: mux-h1: Set flags about the request's scheme on the start-line

We first try to figure out if the URI of the start-line is absolute or not. So,
if it does not start by a slash ("/"), it means the URI is an absolute one and
the flag HTX_SL_F_HAS_SCHM is set. Then checks are performed to know if the
scheme is "http" or "https" and the corresponding flag is set,
HTX_SL_F_SCHM_HTTP or HTX_SL_F_SCHM_HTTPS. Other schemes, for instance ftp, are
ignored.
src/mux_h1.c