send content-type application/json

This commit is contained in:
2021-10-31 17:41:19 +01:00
parent 3e2fe1efe9
commit 5e21f48de4

View File

@@ -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