From 5e21f48de427e3012cce888280b0fffb8df60da2 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 31 Oct 2021 17:41:19 +0100 Subject: [PATCH] send content-type application/json --- utils/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/utils.go b/utils/utils.go index e6df868..64e3a43 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -208,6 +208,7 @@ var ( ) func SendJSON(data interface{}, w http.ResponseWriter) error { + w.Header().Set("content-type", "application/json") playerJson, err := json.Marshal(data) if err != nil { return err