SuaveIO / suave

Suave is a simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition.
https://suave.io
Other
1.32k stars 198 forks source link

Add more default mime types #764

Closed nojaf closed 1 year ago

nojaf commented 2 years ago

Hello,

Comparing the default mime types of Suave

https://github.com/SuaveIO/suave/blob/57d69e39e67a5b1a1c60b7c015c698a1901a9420/src/Suave/Combinators.fs#L90-L114

to the list of ASP.NET Core

https://github.com/dotnet/aspnetcore/blob/86e28e7b267579e2999e06b63eeef27e4836384a/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs#L24-L404

There is quite the delta. Would you be open to having the same list?

ademar commented 1 year ago

We rather have a minimal number of preconfigured mime types. It is a security feature.