1
0
Fork 0

Use correct error for internal failure

master
Philip O'Toole 10 years ago
parent 01dab376b0
commit d09cb18838

@ -292,7 +292,7 @@ func (s *Server) writeHandler(w http.ResponseWriter, req *http.Request) {
b, err = json.Marshal(wr) b, err = json.Marshal(wr)
} }
if err != nil { if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest) // Internal error actually http.Error(w, err.Error(), http.StatusInternalServerError)
} else { } else {
w.Write([]byte(b)) w.Write([]byte(b))
} }

Loading…
Cancel
Save