Opened 5 years ago
Last modified 3 years ago
#658 new enhancement
Handle MIME types correctly
Reported by: | pferreir | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | v2.2 |
Component: | General | Version: | 0.97.0 |
Keywords: | Cc: |
Description (last modified by pferreir)
We are currently sending Content-Type headers based on our own MIME type map. This is not a very good strategy, as Python includes the mimetypes module by default, and there's also python-magic that provides an extension-agnostic way (using libmagic) to guess the types.
The idea would be to replace our current map with some other mechanism based on an external lib (maybe one of these two). I would avoid trying to use the current interface methods, as it looks quite hacked, and it's easy to replace calls everywhere, they are not that many ;)
Change History (2)
comment:1 Changed 5 years ago by pferreir
- Description modified (diff)
comment:2 Changed 3 years ago by jbenito
- Milestone changed from v1.0 to v1.4
Note: See
TracTickets for help on using
tickets.