]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1: Consider empty port as invalid in authority for CONNECT
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Nov 2022 09:27:54 +0000 (10:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Nov 2022 15:27:52 +0000 (16:27 +0100)
commit75348c2e8b7779d1b00d849ecb5b8324033210f7
treef5fc0d135200791bb835f377d8e1b098f81f3352
parente3177af465e6e44961efa23f58775db700d8911a
MINOR: h1: Consider empty port as invalid in authority for CONNECT

For now, this change is useless because http_get_host_port() returns
IST_NULL when the port is empty. But this will change. For other methods,
empty ports are valid. But not for CONNECT method. To still return a
400-Bad-Request if a CONNECT is performed with an empty port, istlen() is
used to test the port, instead of isttest().
src/h1.c