mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
websocket: drop unreachable code
Change-Id: I54bcd2803ef270e8bb785a3ecb85ee7bf0a5b18b Reviewed-on: https://go-review.googlesource.com/13053 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
@@ -74,7 +74,6 @@ func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) {
|
||||
rwc, buf, err := w.(http.Hijacker).Hijack()
|
||||
if err != nil {
|
||||
panic("Hijack failed: " + err.Error())
|
||||
return
|
||||
}
|
||||
// The server should abort the WebSocket connection if it finds
|
||||
// the client did not send a handshake that matches with protocol
|
||||
|
||||
Reference in New Issue
Block a user