forked from um/cli
1
0
Fork 0

fix: wrong png header

This commit is contained in:
awalol 2024-05-03 16:17:32 +08:00
parent bf6f286de1
commit e4c9a53c3b
1 changed files with 1 additions and 1 deletions

View File

@ -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"),