]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: Forward clients scheme to servers checking start-line flags
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 08:46:51 +0000 (10:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Jun 2019 09:13:32 +0000 (11:13 +0200)
commit3b44c54129a4f8334834dda6344c512e76e883fa
tree71f8ac69f65e780b14352dfd961dbf090f3583c2
parent42993a86c9ee1cd6e921395dd446617d79b64a18
MINOR: mux-h2: Forward clients scheme to servers checking start-line flags

By default, the scheme "https" is always used. But when an explicit scheme was
defined and when this scheme is "http", we use it in the request sent to the
server. This is done by checking flags of the start-line. If the flag
HTX_SL_F_HAS_SCHM is set, it means an explicit scheme was defined on the client
side. And if the flag HTX_SL_F_SCHM_HTTP is set, it means the scheme "http" was
used.
src/mux_h2.c