Closed Robbert closed 8 years ago
We should be able to detect GIF files with an .html extension, for example.
.html
I've asked Anne van Kesteren and it appears no JavaScript implementation of the mimesniff standard exists.
doc-sniff
mime-sniffer
Depends on wesaynih/incubator#67.
We should be able to detect GIF files with an
.html
extension, for example.I've asked Anne van Kesteren and it appears no JavaScript implementation of the mimesniff standard exists.
doc-sniff
on npm thinks the mimesniff standard is too complicated, and thusly chose for an unsafe implementation.mime-sniffer
doesn't implement the algorithm, it just checks a couple of byte sequences.Depends on wesaynih/incubator#67.