Revert "s3api: preserve Host header port in signature verification (#8434)"

This reverts commit 98d89ffad7.
This commit is contained in:
Chris Lu
2026-02-25 12:28:44 -08:00
parent f82ee08972
commit d5e71eb0d8
3 changed files with 50 additions and 32 deletions

View File

@@ -415,13 +415,13 @@ func TestSignatureV4WithoutProxy(t *testing.T) {
name: "HTTP with standard port",
host: "backend:80",
proto: "http",
expectedHost: "backend:80",
expectedHost: "backend",
},
{
name: "HTTPS with standard port",
host: "backend:443",
proto: "https",
expectedHost: "backend:443",
expectedHost: "backend",
},
{
name: "HTTP without port",
@@ -451,13 +451,13 @@ func TestSignatureV4WithoutProxy(t *testing.T) {
name: "IPv6 HTTP with standard port",
host: "[::1]:80",
proto: "http",
expectedHost: "[::1]:80",
expectedHost: "::1",
},
{
name: "IPv6 HTTPS with standard port",
host: "[::1]:443",
proto: "https",
expectedHost: "[::1]:443",
expectedHost: "::1",
},
{
name: "IPv6 HTTP without port",