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
net/http: DetectContentType does not detect the mp4 mimetype #8773
Comments
any plans on implementing this yet? it would help a lot with stuff like file uploading tools that have to detect mime types. |
/cc @dsymonds |
Contributions welcome. I'm not planning to do it myself. |
@dsymonds Any chance to get some input, though? Your todo reads "Re-enable this when the spec is sorted w.r.t. MP4." – Do you, by any chance, remember what had to be sorted? Only the little-endian <-> big-endian issue? I realise this code is 4 years old, so it might be hard to remember. Also: The current version of the spec only looks for "mp4", not all the other types (iso, M4V, ...) that the original code checks for. How closely should the spec be followed here? In order to follow the current version of the spec, only a number, and which strings to consider valid, need to be changed. |
I can't remember. I think at the time the spec didn't actually specify the MP4 string to match, but it looks like it does now. If you add a |
CL mailed to https://go-review.googlesource.com/#/c/16951/ |
CL https://golang.org/cl/16951 mentions this issue. |
The text was updated successfully, but these errors were encountered: