Skip to content

Commit

Permalink
Change http header.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marcel Belmont committed Jan 26, 2019
1 parent 6ec3887 commit 3ecbe6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/apid/handlers/hero.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (h *Hero) Delete(w http.ResponseWriter, r *http.Request, params map[string]

if err := hero.Delete(dbConn, params["id"]); err != nil {
log.Printf("ERROR: Calling hero Delete Service function: %s", err.Error())
w.WriteHeader(http.StatusInternalServerError)
w.WriteHeader(http.StatusNotFound)
return
}

Expand Down

0 comments on commit 3ecbe6d

Please sign in to comment.