mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-25 14:56:59 +00:00
fix: wrong png header
This commit is contained in:
1 parent
6179bcf0c7
commit
119a8cf380
1 file changed
+1
-1
@@ -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{'P', 'N', 'G', '\r', '\n', 0x1A, '\n'},
|
||||
"image/png": prefixSniffer{0x89, 'P', 'N', 'G', '\r', '\n', 0x1A, '\n'},
|
||||
"image/bmp": prefixSniffer("BM"),
|
||||
"image/webp": prefixSniffer("RIFF"),
|
||||
"image/gif": prefixSniffer("GIF8"),
|
||||
|
||||
Reference in new issue
Block a user