Add missing content-type

This commit is contained in:
Gabe Kangas
2020-11-19 15:26:43 -08:00
parent d4426f1dff
commit e860f9ab2f
2 changed files with 2 additions and 0 deletions

View File

@@ -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: