Set charset=utf-8 in Content-Type header

This commit is contained in:
Bendodroid 2024-01-16 01:24:19 +01:00
parent cf9678d712
commit bc299d4c70
Signed by: bendodroid
GPG key ID: 3EEE19A0F73D5FFC

View file

@ -27,7 +27,7 @@ func Root(resp *types.SpaceAPIResponseV14) func(http.ResponseWriter, *http.Reque
}
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Content-Type", "application/json; charset=utf-8")
_, _ = w.Write(response)
}
}