feat(backend-http): Content-Type header for json responses
This commit is contained in:
parent
168a840e08
commit
45091edd14
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue