forked from mirror/websocket
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)
|
conn, err := upgrader.Upgrade(w, r, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Upgrade:", err)
|
log.Println("Upgrade:", err)
|
||||||
http.Error(w, "Bad request", 400)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
Loading…
Reference in New Issue