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 for text files
Browse files Browse the repository at this point in the history
Should use the TextContent
  • Loading branch information
Thomas Cannon committed Aug 12, 2016
1 parent 41553f1 commit 405bbe3
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 @@ -88,7 +88,7 @@ private HTMLResponseContentType GetContentType(string extension)
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[".txt"] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = "text/plain" };
contentTypes[".txt"] = new HTMLResponseContentType { contentType = HTMLContentType.TextContent, mimeType = "text/plain" };
contentTypes[""] = new HTMLResponseContentType { contentType = HTMLContentType.BinaryContent, mimeType = null };

}
Expand Down

0 comments on commit 405bbe3

Please sign in to comment.