1
0
Fork 0

Make app protocol case insensitive

This commit is contained in:
shreealt 2025-08-20 19:30:08 +05:30 committed by GitHub
parent c60815ed08
commit 3b33ffa245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 122 additions and 2 deletions

View file

@ -2959,6 +2959,14 @@ func TestLoadHTTPRoutes_backendExtensionRef(t *testing.T) {
Name: "default-whoami-wss-http-80",
Weight: ptr.To(1),
},
{
Name: "default-whoami-HTTP-http-80",
Weight: ptr.To(1),
},
{
Name: "default-whoami-HTTPS-http-443",
Weight: ptr.To(1),
},
},
},
},
@ -3004,6 +3012,34 @@ func TestLoadHTTPRoutes_backendExtensionRef(t *testing.T) {
},
},
},
"default-whoami-HTTPS-http-443": {
LoadBalancer: &dynamic.ServersLoadBalancer{
Strategy: dynamic.BalancerStrategyWRR,
Servers: []dynamic.Server{
{
URL: "https://10.10.0.16:8443",
},
},
PassHostHeader: ptr.To(true),
ResponseForwarding: &dynamic.ResponseForwarding{
FlushInterval: ptypes.Duration(100 * time.Millisecond),
},
},
},
"default-whoami-HTTP-http-80": {
LoadBalancer: &dynamic.ServersLoadBalancer{
Strategy: dynamic.BalancerStrategyWRR,
Servers: []dynamic.Server{
{
URL: "http://10.10.0.17:8080",
},
},
PassHostHeader: ptr.To(true),
ResponseForwarding: &dynamic.ResponseForwarding{
FlushInterval: ptypes.Duration(100 * time.Millisecond),
},
},
},
},
ServersTransports: map[string]*dynamic.ServersTransport{},
},