Compare commits
No commits in common. "fb07697afa9c54dbbfd8a1e396e2bcee7894651d" and "bf6f286de13d5139e500821cbadce88dc80e4b62" have entirely different histories.
fb07697afa
...
bf6f286de1
@ -3,7 +3,7 @@ package sniff
|
||||
// ref: https://mimesniff.spec.whatwg.org
|
||||
var imageMIMEs = map[string]Sniffer{
|
||||
"image/jpeg": prefixSniffer{0xFF, 0xD8, 0xFF},
|
||||
"image/png": prefixSniffer{0x89, 'P', 'N', 'G', '\r', '\n', 0x1A, '\n'},
|
||||
"image/png": prefixSniffer{'P', 'N', 'G', '\r', '\n', 0x1A, '\n'},
|
||||
"image/bmp": prefixSniffer("BM"),
|
||||
"image/webp": prefixSniffer("RIFF"),
|
||||
"image/gif": prefixSniffer("GIF8"),
|
||||
|
Loading…
Reference in New Issue
Block a user