-
Notifications
You must be signed in to change notification settings - Fork 36
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
Strict mimetypes or not? #163
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use
mimetypes.guess_type
inkobo/kobo/http.py
Lines 32 to 40 in eaff9b4
guess_type
hasstrict
option set toTrue
by default which means that common_types included in Python stdlib are ignored.For example, in a containerized environment without
/etc/mime.types
file,.rtf
extension is not resolvable with strict mode turned on:but without it, it works:
so turning off the strict mode might make it better for containerized environments and if we merge #162 we won't need mailcap package for tests (provides
/etc/mime.types
).The text was updated successfully, but these errors were encountered: