Skip to content

Commit

Permalink
set websocket upgrade type (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene authored Jul 22, 2020
1 parent 400aa6c commit a0b969b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/envoy/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func (l *Listener) getVirtualHost(hostname, targetHostname, targetPrefix, cluste
Enabled: &wrappers.BoolValue{
Value: true,
},
UpgradeType: "websocket",
},
}
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/envoy/xds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,10 @@ func TestClusterWithWebsockets(t *testing.T) {
t.Errorf("Upgrade config is not set to enabled")
return
}
if upgradeConfigs[0].UpgradeType != "websocket" {
t.Errorf("Upgrade config type is not set to websocket")
return
}
}
}
func TestCompressionObject(t *testing.T) {
Expand Down

0 comments on commit a0b969b

Please sign in to comment.