Add missing content-type
This commit is contained in:
parent
d4426f1dff
commit
e860f9ab2f
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user