mscdex / mmmagic

An async libmagic binding for node.js for detecting content types by data inspection
MIT License
619 stars 50 forks source link

SVGs wrongly classified as `image/svg`. Should be `image/svg+xml`. #159

Open Asheboy opened 3 years ago

Asheboy commented 3 years ago

The mime returned for SVGs is returned as image/svg, where as the latest libmagic returns image/svg+xml. I think it was this change in libmagic which has caused the change https://github.com/file/file/commit/1a08bb5c235700ba623ffa6f3c95938fe295b262#diff-ef0f1096db6eb16f194642478eeb447c062f5dac100af139785a45bc6d1b3404.