Browse Source

Removed unnecessary call to "http.Error".

Joachim Bauch 11 năm trước cách đây
mục cha
commit
018944708b
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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()