From b01f3b407f07029deaea4f983af6220ec2301cb7 Mon Sep 17 00:00:00 2001 From: EwenQuim Date: Thu, 21 Mar 2024 02:07:51 +0100 Subject: [PATCH] Add correct header on JSON response --- serialization.go | 1 + 1 file changed, 1 insertion(+) diff --git a/serialization.go b/serialization.go index 0558e360..f8a9d88e 100644 --- a/serialization.go +++ b/serialization.go @@ -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) }