From 9b96084aab83dd47a4de2366bbdc15b82388730c Mon Sep 17 00:00:00 2001 From: collin Date: Wed, 27 Aug 2025 14:00:19 +0200 Subject: [PATCH] Adding appropriate content-type header to get rsvps --- controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller.go b/controller.go index 11484a4..92162eb 100644 --- a/controller.go +++ b/controller.go @@ -63,6 +63,7 @@ func (h *Handler) getRsvps(w http.ResponseWriter, r *http.Request) { return } + w.Header().Add("Content-Type", "application/json") w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "%s", marshalledRsvps) }