From d1ed79a66c7930020b7fda046a11050f5890c84e Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 14 Mar 2018 18:09:04 -0400 Subject: Add content type to API error response (#8460) --- utils/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/api.go') diff --git a/utils/api.go b/utils/api.go index 0f2640829..b5e490eb7 100644 --- a/utils/api.go +++ b/utils/api.go @@ -59,6 +59,7 @@ func RenderWebError(w http.ResponseWriter, r *http.Request, status int, params u return } + w.Header().Set("Content-Type", "text/html") w.WriteHeader(status) fmt.Fprintln(w, ``) fmt.Fprintln(w, ``) -- cgit v1.2.3-1-g7c22