Skip to content

Commit

Permalink
Add Content-Type header to stats endpoint
Browse files Browse the repository at this point in the history
This fixes automuteus#7
  • Loading branch information
CarbonNeuron authored Feb 3, 2021
1 parent 27ac0dd commit 10e59f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/galactus/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func (galactus *GalactusAPI) indexHandler() func(w http.ResponseWriter, r *http.
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "GET, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length")
w.Header().Set("Content-Type", "application/json") //Set content type to Application/Json because we are serving json data

// default to listing active games in the last 15 mins
activeGames := rediskey.GetActiveGames(context.Background(), galactus.client, 900)
Expand Down

0 comments on commit 10e59f7

Please sign in to comment.