go get and commit the websocket fork

This commit is contained in:
Shivaram Lingamneni 2021-03-04 18:30:22 -05:00
parent 7b8e15ff1d
commit f05c57344e
3 changed files with 6 additions and 3 deletions

View file

@ -99,8 +99,8 @@ func checkSameOrigin(r *http.Request) bool {
func (u *Upgrader) selectSubprotocol(r *http.Request, responseHeader http.Header) string {
if u.Subprotocols != nil {
clientProtocols := Subprotocols(r)
for _, serverProtocol := range u.Subprotocols {
for _, clientProtocol := range clientProtocols {
for _, clientProtocol := range clientProtocols {
for _, serverProtocol := range u.Subprotocols {
if clientProtocol == serverProtocol {
return clientProtocol
}