Set Content-Type on status endpoint (#70)

This commit is contained in:
Matt Steele 2020-07-19 12:26:05 -05:00 committed by GitHub
parent fbfea8e38c
commit edec533eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}