SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
703 stars 108 forks source link

svg has mimetype text/plain #369

Open halcwb opened 1 year ago

halcwb commented 1 year ago

When running an application that shows some svg images, these won't show up.

I have tried: use_mime_types [".svg", "image/svg+xml"], however, still the mimetype is set at text/plain.

let application = application {
    url ("http://*:" + port.ToString() + "/")
    use_router webApp
    memory_cache
    use_gzip
    use_mime_types [
            ".svg", "image/svg+xml"
            ".png", "image/png"
        ]
    use_static "public" 

image