Permalink
Browse files

backport fix from TG2.3 on mime type detection

  • Loading branch information...
1 parent 6d6870b commit 5a7d56251c1cb72f4261ac64f41bb6c7876043f0 @amol- amol- committed Jan 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tg/controllers/dispatcher.py
@@ -70,7 +70,7 @@ def _get_dispatchable(self, url_path):
ext = state.extension
if ext is not None:
ext = '.' + ext
- mime_type, encoding = mimetypes.guess_type(ext)
+ mime_type, encoding = mimetypes.guess_type('file'+ext)
pylons.request.response_type = mime_type
pylons.request.response_ext = ext

0 comments on commit 5a7d562

Please sign in to comment.