test case expectations are ok
@@ -2322,12 +2322,8 @@ func TestHTTPServer_XFH_AcceptingForwardedUrl(t *testing.T) {
Port: 443,
Origin: "https://www.example.com",
Url: "https://www.example.com/path",
- // Port: 8443,
- // Origin: "https://www.example.com:8443",
- // Url: "https://www.example.com:8443/path",
},
"https://www.example.com/path",
- // "https://www.example.com:8443/path",
},
{
"proto, port, no host",
@@ -2414,12 +2410,8 @@ func TestHTTPServer_XFH_AcceptingForwardedUrl(t *testing.T) {
Port: 8080,
Origin: "http://www.example.com:8080",
Url: "http://www.example.com:8080/path",
- // Port: 8081,
- // Origin: "http://www.example.com:8081",
- // Url: "http://www.example.com:8081/path",
},
"http://www.example.com:8080/path",
- // "http://www.example.com:8081/path",
},
{
"proto, host, port",
