From da448e5be3044b58651b6b33814de3808940653a Mon Sep 17 00:00:00 2001 From: Bennett Wetters Date: Sun, 5 Nov 2023 18:11:29 +0100 Subject: [PATCH] Set Content-Type header to application/json Fixes #1 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index d8f399d..48c0325 100644 --- a/main.go +++ b/main.go @@ -68,6 +68,7 @@ func main() { return } + w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) _, _ = w.Write(response) })