]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h2: make the request parser rebuild a complete URI
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Oct 2019 14:53:07 +0000 (16:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Oct 2019 09:10:19 +0000 (11:10 +0200)
commit92919f7fd5bc4063e0b3473d4428ec53a5717376
treea3bc00853be70b559a792340edd3c69323a3455d
parent92916d343cc2c12d59db8a2a7b04ccb721fb2809
MEDIUM: h2: make the request parser rebuild a complete URI

Till now we've been producing path components of the URI and using the
:authority header only to be placed into the host part. But this practice
is not correct, as if we're used to convey H1 proxy requests over H2 then
over H1, the absolute URI is presented as a path on output, which is not
valid. In addition the scheme on output is not updated from the absolute
URI either.

Now the request parser will continue to deliver origin-form for request
received using the http/https schemes, but will use the absolute-form
when dealing with other schemes, by concatenating the scheme, the authority
and the path if it's not '*'.
src/h2.c