mirror of
https://github.com/owncast/owncast.git
synced 2024-10-23 13:05:56 +03:00
Set Content-Type on status endpoint (#70)
This commit is contained in:
parent
fbfea8e38c
commit
edec533eef
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ func GetStatus(w http.ResponseWriter, r *http.Request) {
|
|||
middleware.EnableCors(&w)
|
||||
|
||||
status := core.GetStatus()
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
json.NewEncoder(w).Encode(status)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue