Fix missing ContentType

This commit is contained in:
2024-10-22 20:00:32 -04:00
parent 0c11d0aa5e
commit b9edb80e70

View File

@@ -9,7 +9,7 @@ public static class ContentTypes
private const string ImageJpg = "image/jpg";
private static string TextHtml = "text/html";
private static readonly HashSet<string> AllowedContentTypes = [ImagePng, ImageJpeg, ImageJpg];
private static readonly HashSet<string> AllowedContentTypes = [ImagePng, ImageJpeg, ImageJpg, TextHtml];
public static bool IsAllowed(
string contentType,