fixed bad copy paste (200 ok should be sent on success)
parent
4567108da8
commit
cf1b33e170
|
@ -624,7 +624,7 @@ func handleRetrieveEggs(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
jsonResponse(w, r, eggs)
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
func handleUpdateEggs(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Reference in New Issue