net/http: DetectContentType does not detect application/x-tar #32505
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
extracted the first 512 bytes of a tar file and ran net/http.DetectContentType on it
https://play.golang.org/p/6K9ve_L54ua
What did you expect to see?
application/x-tar
What did you see instead?
application/octet-stream
The text was updated successfully, but these errors were encountered: