diff --git a/Program.cs b/Program.cs index b480d28..3b13d7f 100644 --- a/Program.cs +++ b/Program.cs @@ -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"; + } } }); diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index a4196f9..a04e3fb 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -13,6 +13,7 @@ +