feat(backend-http): Content-Type header for json responses

This commit is contained in:
ShiKhu 2021-10-22 19:06:07 +02:00
parent 168a840e08
commit 45091edd14

View file

@ -11,6 +11,7 @@ func responseWithJSON(w http.ResponseWriter, res interface{}) {
if err != nil {
log.Println(err)
}
w.Header().Set("Content-Type", "application/json")
w.Write(body)
}