mirror of https://github.com/gorilla/websocket.git
Removed unnecessary call to "http.Error".
This commit is contained in:
parent
8827bd1a23
commit
018944708b
|
@ -39,7 +39,6 @@ func echoCopy(w http.ResponseWriter, r *http.Request, writerOnly bool) {
|
|||
conn, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
||||
log.Println("Upgrade:", err)
|
||||
http.Error(w, "Bad request", 400)
|
||||
return
|
||||
}
|
||||
defer conn.Close()
|
||||
|
|
Loading…
Reference in New Issue