From bc4e47630a1d93a83ad1777b1d3f656140f26431 Mon Sep 17 00:00:00 2001
From: "David M." <cykey@live.com>
Date: Sat, 26 Jul 2014 20:55:59 -0400
Subject: [PATCH] Set the correct json content-type

Chance text/json to application/json to comply with the RFC.

See http://www.ietf.org/rfc/rfc4627.txt for more information.
---
 mongoose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mongoose.c b/mongoose.c
index e8bfb4cda..7a0bf849b 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -1342,7 +1342,7 @@ static const struct {
   {".ogg", 4, "application/ogg"},
   {".ram", 4, "audio/x-pn-realaudio"},
   {".xml", 4, "text/xml"},
-  {".json",  5, "text/json"},
+  {".json",  5, "application/json"},
   {".xslt", 5, "application/xml"},
   {".xsl", 4, "application/xml"},
   {".ra",  3, "audio/x-pn-realaudio"},
-- 
GitLab