Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add missing content-type

Gabe Kangas4a08dcca7843
diff --git a/controllers/chat.go b/controllers/chat.go
index 175ad296d4..6290cd9388 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 f30416e7f8..65b0bb95fd 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