Adding appropriate content-type header to get rsvps
This commit is contained in:
parent
882dda7c95
commit
9b96084aab
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue