Allow test client to guess files' mimetypes
|Reported by:||julien||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently, all files posted through the test client are sent as 'application/octet-stream'. To test views that rely on mimetypes you have to create a request object from scratch, which is quite tedious. It'd be nice to allow python to guess the mimetypes (therefore simulating a browser's encoding) to make the process easier.
See discussion in django-users list: http://groups.google.com/group/django-users/browse_thread/thread/4e168903ec91b068
See also patch attached.
Change History (4)
Changed 7 years ago by julien
comment:1 Changed 7 years ago by julien
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset