Set Content-Type header to MimeJSON in ResponsePrettyJSON function

This commit is contained in:
seydx
2025-09-30 14:50:57 +02:00
parent 3a0e4078fd
commit 50d5fa93b6
+1 -1
View File
@@ -166,7 +166,7 @@ func ResponseJSON(w http.ResponseWriter, v any) {
}
func ResponsePrettyJSON(w http.ResponseWriter, v any) {
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Content-Type", MimeJSON)
var buf bytes.Buffer
enc := json.NewEncoder(&buf)