Commit: allow images.

This commit is contained in:
clive
2024-11-10 15:14:26 +11:00
parent b5f2c26f71
commit 4e5c84e416
2 changed files with 5 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ app.UseStaticFiles(new StaticFileOptions
{
ctx.Context.Response.ContentType = "image/x-icon";
}
else if (path.EndsWith(".jpg") || path.EndsWith(".jpeg"))
{
ctx.Context.Response.ContentType = "image/jpeg";
}
}
});