net/http: add audio/mp3 to DetectContentType #50375
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/net/http#DetectContentType
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 http.DetectContentType with this uploaded MP3 file (unzip it to test):
Bagdad cafe - I'm Calling you.mp3.zip
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 http.DetectContentType?
The text was updated successfully, but these errors were encountered: