Skip to content

Commit

Permalink
Fixes JSON error Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Mar 21, 2024
1 parent 8d6177b commit c6e34d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func SendJSONError(w http.ResponseWriter, err error) {
}

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

Expand Down

0 comments on commit c6e34d2

Please sign in to comment.