Test Project Created
+ Implemented Request Processing (Cache => Regex Events => Razor Pages => Static Content) + Rendering based on domain works - Areas are not implemented + Content Type Map now defines `.cshtml` files and default mime type was changed to "text/plain" + GetStaticFile no longer returns private templates/layouts (used to be able to view those in plain text by requesting with a fully qualified path) I will make more concise tests in a bit (I was not pushing to git properly, so have to make big commits for the time being)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace WebServer.Utils
|
||||
{
|
||||
private const string Dot = ".";
|
||||
private const string QuestionMark = "?";
|
||||
private const string DefaultMimeType = "application/octet-stream";
|
||||
private const string DefaultMimeType = "text/plain";
|
||||
private static readonly Lazy<IDictionary<string, string>> _mappings = new Lazy<IDictionary<string, string>>(BuildMappings);
|
||||
public static string HtmlDocument = GetMimeType(".html");
|
||||
|
||||
@@ -218,6 +218,7 @@ namespace WebServer.Utils
|
||||
{".htc", "text/x-component"},
|
||||
{".htm", "text/html"},
|
||||
{".html", "text/html"},
|
||||
{".cshtml", "text/html"},
|
||||
{".htt", "text/webviewhtml"},
|
||||
{".hxa", "application/xml"},
|
||||
{".hxc", "application/xml"},
|
||||
|
||||
Reference in New Issue
Block a user