From cf1b33e170cc75623ccfdf3031489ac54c8b6d6c Mon Sep 17 00:00:00 2001 From: gamray Date: Mon, 13 May 2024 00:21:00 +0200 Subject: [PATCH] fixed bad copy paste (200 ok should be sent on success) --- api/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/endpoints.go b/api/endpoints.go index a459fc6..016ebcd 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -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) {