Permalink
Browse files

Merge branch 'development' of github.com:TurboGears/tg2 into development

  • Loading branch information...
2 parents 1a1bbc2 + 5a7d562 commit a0bee98c2493590d8cea7b5dcd433e6cf1bd9c7b @pedersen pedersen committed Jan 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tg/controllers/dispatcher.py
View
2 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 a0bee98

Please sign in to comment.