Fix wss in x-forwarded-proto
This commit is contained in:
parent
efcaf64a43
commit
e22c62baba
2 changed files with 12 additions and 1 deletions
|
@ -203,6 +203,17 @@ func TestServeHTTP(t *testing.T) {
|
|||
xForwardedProto: "wss",
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "xForwardedProto with websocket and tls and already x-forwarded-proto with wss",
|
||||
tls: true,
|
||||
websocket: true,
|
||||
incomingHeaders: map[string]string{
|
||||
xForwardedProto: "wss",
|
||||
},
|
||||
expectedHeaders: map[string]string{
|
||||
xForwardedProto: "wss",
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "xForwardedPort with explicit port",
|
||||
host: "foo.com:8080",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue