Browse Source

Removed unnecessary call to "http.Error".

Joachim Bauch 11 years ago
parent
commit
018944708b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      examples/autobahn/server.go

+ 0 - 1
examples/autobahn/server.go

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