Open phath9 opened 2 years ago
Steps to reproduce:
lookupMimeType('Bart_Simpson_200px.png', headerBytes: [0xFF, 0xD8]);
image/jpeg
image/png
if you want to pass header bytes, they should be coming from the file itself. in your sample code, you passed hard coded header bytes which would be matching a jpeg, so it's logical it returns image/jpeg
Steps to reproduce:
lookupMimeType('Bart_Simpson_200px.png', headerBytes: [0xFF, 0xD8]);
image/jpeg
when expected result should beimage/png