Commit: allow images.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user