Removed unnecessary call to "http.Error".

This commit is contained in:
Joachim Bauch 2014-04-18 00:14:23 +02:00
parent 8827bd1a23
commit 018944708b
1 changed files with 0 additions and 1 deletions

View File

@ -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()