Skip to content

Commit

Permalink
Add correct header on JSON response
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Mar 21, 2024
1 parent 3c51393 commit b01f3b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func SendJSONError(w http.ResponseWriter, err error) {
}

w.WriteHeader(status)
w.Header().Set("Content-Type", "application/problems+json")
SendJSON(w, errorStatus)
}

Expand Down

0 comments on commit b01f3b4

Please sign in to comment.