Skip to content

Commit

Permalink
fix typos (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobogaga authored and elithrar committed Aug 23, 2019
1 parent ae1634f commit 7e9819d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Expand Up @@ -153,7 +153,7 @@ func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, responseHeade

challengeKey := r.Header.Get("Sec-Websocket-Key")
if challengeKey == "" {
return u.returnError(w, r, http.StatusBadRequest, "websocket: not a websocket handshake: `Sec-WebSocket-Key' header is missing or blank")
return u.returnError(w, r, http.StatusBadRequest, "websocket: not a websocket handshake: 'Sec-WebSocket-Key' header is missing or blank")
}

subprotocol := u.selectSubprotocol(r, responseHeader)
Expand Down

0 comments on commit 7e9819d

Please sign in to comment.