]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-htx: Normalized absolute URIs with an empty port
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Nov 2022 18:20:20 +0000 (19:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Nov 2022 15:56:49 +0000 (16:56 +0100)
commite5dfe1169d50acd3a4c7d04441203718f1964836
tree252c61176e7448afbfbd5664350e33a45e8a1a67
parent99ade9e0dac03be464ea488e2424351ee0bc2aae
BUG/MINOR: http-htx: Normalized absolute URIs with an empty port

Thanks to the previous commit ("MINOR: http: Considere empty ports as valid
default ports"), empty ports are now considered as valid default ports. Thus,
absolute URIs with empty port should be normalized.

So now, the following URIs are normalized:

 http://example.com:/  --> http://example.com/
 https://example.com:/ --> https://example.com/

This patch depend on:

   * MINOR: h1: Consider empty port as invalid in authority for CONNECT
   * MINOR: http: Considere empty ports as valid default ports

It is a bug regarding the RFC3986. Technically, I may be backported as far
as 2.4. However, this must be discussed first. If backported, the commits
above must be backported too.
src/http_htx.c