Adding appropriate content-type header to get rsvps

This commit is contained in:
collin 2025-08-27 14:00:19 +02:00
parent 882dda7c95
commit 9b96084aab
No known key found for this signature in database

View file

@ -63,6 +63,7 @@ func (h *Handler) getRsvps(w http.ResponseWriter, r *http.Request) {
return return
} }
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, "%s", marshalledRsvps) fmt.Fprintf(w, "%s", marshalledRsvps)
} }