We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f615346 commit 025ff19Copy full SHA for 025ff19
listener/http/utils.go
@@ -47,7 +47,7 @@ func removeExtraHTTPHostPort(req *http.Request) {
47
host = req.URL.Host
48
}
49
50
- if pHost, port, err := net.SplitHostPort(host); err == nil && (port == "80" || port == "443") {
+ if pHost, port, err := net.SplitHostPort(host); err == nil && port == "80" {
51
host = pHost
52
if ip, err := netip.ParseAddr(pHost); err == nil && ip.Is6() {
53
// RFC 2617 Sec 3.2.2, for IPv6 literal
0 commit comments