You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
guess_type has strict option set to True 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:
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:
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: