From 4693d3321602c60d3841e76878d082667b02212e Mon Sep 17 00:00:00 2001 From: 07Pedro <149793367+07Pedro@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:18:00 +0100 Subject: [PATCH] Update v2.go Use the right Media Type for JSON: "application/json" instead of "text/json" #165 --- 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 4ef0c405..dbec10d3 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) }