From 3cba2329392f12f2c568f9ca3ff419a4d32ab134 Mon Sep 17 00:00:00 2001 From: Yuto Watanabe Date: Sun, 8 Aug 2021 16:31:41 +0900 Subject: [PATCH] added json header --- status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/status.go b/status.go index 769de43..271d063 100644 --- a/status.go +++ b/status.go @@ -24,5 +24,6 @@ func ErrorResponse(w http.ResponseWriter, statusCode int, err error) { ErrorResponse(w, 1, err) } + w.Header().Set("Content-Type", "application/json") w.Write(responseText) }