Mercurial > piecrust2
diff piecrust/serving/util.py @ 916:84ce51430346
pep8: Fix indenting.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 27 Sep 2017 19:07:55 -0700 |
parents | 01458d3b646b |
children | 45ad976712ec |
line wrap: on
line diff
--- a/piecrust/serving/util.py Wed Sep 27 19:05:34 2017 -0700 +++ b/piecrust/serving/util.py Wed Sep 27 19:07:55 2017 -0700 @@ -119,20 +119,20 @@ response.set_etag(etag) response.last_modified = datetime.datetime.fromtimestamp(mtime) response.mimetype = mimetype_map.get( - ext.lstrip('.'), 'text/plain') + ext.lstrip('.'), 'text/plain') response.direct_passthrough = True return response mimetype_map = load_mimetype_map() content_type_map = { - 'html': 'text/html', - 'xml': 'text/xml', - 'txt': 'text/plain', - 'text': 'text/plain', - 'css': 'text/css', - 'xhtml': 'application/xhtml+xml', - 'atom': 'application/atom+xml', # or 'text/xml'? - 'rss': 'application/rss+xml', # or 'text/xml'? - 'json': 'application/json'} + 'html': 'text/html', + 'xml': 'text/xml', + 'txt': 'text/plain', + 'text': 'text/plain', + 'css': 'text/css', + 'xhtml': 'application/xhtml+xml', + 'atom': 'application/atom+xml', # or 'text/xml'? + 'rss': 'application/rss+xml', # or 'text/xml'? + 'json': 'application/json'}