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"; ctx.Context.Response.ContentType = "image/x-icon";
} }
else if (path.EndsWith(".jpg") || path.EndsWith(".jpeg"))
{
ctx.Context.Response.ContentType = "image/jpeg";
}
} }
}); });

View File

@@ -13,6 +13,7 @@
<link rel="stylesheet" href="~/css/carousel.css" asp-append-version="true" /> <link rel="stylesheet" href="~/css/carousel.css" asp-append-version="true" />
<link rel="stylesheet" href="~/clivelancaster.styles.css" asp-append-version="true" /> <link rel="stylesheet" href="~/clivelancaster.styles.css" asp-append-version="true" />
<script defer data-domain="clivelancaster.com" src="https://analytics.rokoh.com/js/script.js"></script> <script defer data-domain="clivelancaster.com" src="https://analytics.rokoh.com/js/script.js"></script>
<link rel="icon" type="image/x-icon" href='@Url.Content("~/favicon.ico")'>
</head> </head>
<body> <body>
<header> <header>