mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 04:27:18 +08:00
Add missing content-type
This commit is contained in:
@ -13,6 +13,7 @@ import (
|
|||||||
// GetChatMessages gets all of the chat messages.
|
// GetChatMessages gets all of the chat messages.
|
||||||
func GetChatMessages(w http.ResponseWriter, r *http.Request) {
|
func GetChatMessages(w http.ResponseWriter, r *http.Request) {
|
||||||
middleware.EnableCors(&w)
|
middleware.EnableCors(&w)
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case http.MethodGet:
|
case http.MethodGet:
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import (
|
|||||||
// GetWebConfig gets the status of the server.
|
// GetWebConfig gets the status of the server.
|
||||||
func GetWebConfig(w http.ResponseWriter, r *http.Request) {
|
func GetWebConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
middleware.EnableCors(&w)
|
middleware.EnableCors(&w)
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
|
||||||
configuration := config.Config.InstanceDetails
|
configuration := config.Config.InstanceDetails
|
||||||
configuration.Version = config.Config.VersionInfo
|
configuration.Version = config.Config.VersionInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user