Merge pull request 'fix: wrong png header' (#91) from awalol/cli:fix-png into master

Reviewed-on: https://git.unlock-music.dev/um/cli/pulls/91
remotes/1726793061553286614/master
jixunmoe 7 months ago
commit fb07697afa

@ -3,7 +3,7 @@ package sniff
// ref: https://mimesniff.spec.whatwg.org // ref: https://mimesniff.spec.whatwg.org
var imageMIMEs = map[string]Sniffer{ var imageMIMEs = map[string]Sniffer{
"image/jpeg": prefixSniffer{0xFF, 0xD8, 0xFF}, "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/bmp": prefixSniffer("BM"),
"image/webp": prefixSniffer("RIFF"), "image/webp": prefixSniffer("RIFF"),
"image/gif": prefixSniffer("GIF8"), "image/gif": prefixSniffer("GIF8"),

Loading…
Cancel
Save