diff --git a/controllers/chat.go b/controllers/chat.go index 175ad296d..6290cd938 100644 --- a/controllers/chat.go +++ b/controllers/chat.go @@ -13,6 +13,7 @@ import ( // GetChatMessages gets all of the chat messages. func GetChatMessages(w http.ResponseWriter, r *http.Request) { middleware.EnableCors(&w) + w.Header().Set("Content-Type", "application/json") switch r.Method { case http.MethodGet: diff --git a/controllers/config.go b/controllers/config.go index f30416e7f..65b0bb95f 100644 --- a/controllers/config.go +++ b/controllers/config.go @@ -11,6 +11,7 @@ import ( // GetWebConfig gets the status of the server. func GetWebConfig(w http.ResponseWriter, r *http.Request) { middleware.EnableCors(&w) + w.Header().Set("Content-Type", "application/json") configuration := config.Config.InstanceDetails configuration.Version = config.Config.VersionInfo