-
Notifications
You must be signed in to change notification settings - Fork 15
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
Should we sniff content? #18
Labels
Comments
I just had a problem that mime type wasn't detected by a file extension but was sniffed instead.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turning part of #16 into a standalone item.
I'm not a big fan of content sniffing, as it can lead to really obscure bugs. However, it wouldn't be all that hard to read a chunk from the uncompressed version of the file, and call http.DetectContentType to pick a MIME type.
The text was updated successfully, but these errors were encountered: