mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Try to determine the mime type of a file first based on its path, then based on its content. The previous behavior (looking only at the file content) inferred a mime type of `text/xml` for `.svg` files (instead of `image/svg+xml`) which prevented them from being shown when embedded e.g. in a markdown document.