From 534d9d35e4bf1d2e9547657df35e0f7761605775 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Merle Date: Fri, 3 Mar 2023 00:16:39 +0100 Subject: [PATCH] Fix json mime type --- vendor/github.com/mailhog/MailHog-Server/api/v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/mailhog/MailHog-Server/api/v2.go b/vendor/github.com/mailhog/MailHog-Server/api/v2.go index 4ef0c40..dbec10d 100644 --- a/vendor/github.com/mailhog/MailHog-Server/api/v2.go +++ b/vendor/github.com/mailhog/MailHog-Server/api/v2.go @@ -116,7 +116,7 @@ func (apiv2 *APIv2) messages(w http.ResponseWriter, req *http.Request) { res.Total = apiv2.config.Storage.Count() bytes, _ := json.Marshal(res) - w.Header().Add("Content-Type", "text/json") + w.Header().Add("Content-Type", "application/json") w.Write(bytes) }