Piotr Czajkowski před 1 týdnem
rodič
revize
0319b041ce
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -26,7 +26,7 @@ func init() {
 }
 
 func returnErorr(w http.ResponseWriter, err string) {
-	w.WriteHeader(http.StatusNotFound)
+	w.WriteHeader(http.StatusBadRequest)
 	t := template.Must(template.ParseFiles("./html/error.html"))
 	t.Execute(w, err)
 }