Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP3 MIME is not recognized #1

Open
InfoLibre opened this issue Dec 28, 2021 · 0 comments
Open

MP3 MIME is not recognized #1

InfoLibre opened this issue Dec 28, 2021 · 0 comments

Comments

@InfoLibre
Copy link

What is your user agent?

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

What did you do?

I used mimesniffer.Sniff with this MP3 file:

Bagdad cafe - I'm Calling you.mp3.zip

buff, err := file.Open()
head := make([]byte, 512)
_, err = buff.Read(head)
contentType = mimesniffer.Sniff(head)

What did you expect to see?

audio/mpeg or audio/mp3

What did you see instead?

application/octet-stream (the MIME type of this file isn't recognized)

Could you add this MIME type to mimesniffer.Sniff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant