From 79cd1e3821e236fa9771fd65d88a4d92791d95dc Mon Sep 17 00:00:00 2001 From: Thomas Cannon Date: Fri, 12 Aug 2016 01:42:41 -0400 Subject: [PATCH] Fix content type handler for JSON files --- Telemachus/src/IOPageResponsibility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telemachus/src/IOPageResponsibility.cs b/Telemachus/src/IOPageResponsibility.cs index ace1d07..cbb1b98 100644 --- a/Telemachus/src/IOPageResponsibility.cs +++ b/Telemachus/src/IOPageResponsibility.cs @@ -87,7 +87,7 @@ private HTMLResponseContentType GetContentType(string extension) contentTypes[".woff"] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = "application/font-woff" }; contentTypes[".otf"] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = "application/font-sfnt" }; contentTypes[".mp4"] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = "video/mp4" }; - contentTypes[".json"] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = "application/json" }; + contentTypes[".json"] = new HTMLResponseContentType { contentType = HTMLContentType.TextContent, mimeType = "application/json" }; contentTypes[".txt"] = new HTMLResponseContentType { contentType = HTMLContentType.TextContent, mimeType = "text/plain" }; contentTypes[""] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = null };