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?
to your account
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
I used http.DetectContentType with this uploaded MP3 file (unzip it to test):
Bagdad cafe - I'm Calling you.mp3.zip
buff, err := file.Open()
head := make(byte, 512)
_, err = buff.Read(head)
contentType = http.DetectContentType(head)
audio/mpeg or audio/mp3
application/octet-stream (the MIME type of this file isn't recognized)
Could you add this MIME type to http.DetectContentType?
The text was updated successfully, but these errors were encountered:
It's already implemented, I think. Assuming your mp3 doesn't have ID3 in the first 512 bytes, this is #21124.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.