Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Fix content type handler for JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Cannon committed Aug 12, 2016
1 parent 405bbe3 commit 79cd1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telemachus/src/IOPageResponsibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 79cd1e3

Please sign in to comment.