Skip to content

Commit

Permalink
[#3164] Added headers fix that was issue for 2.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Dec 4, 2018
1 parent e726bd7 commit 6913a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/template.py
Expand Up @@ -30,7 +30,7 @@ def view(self, url):
Found)
"""
if url.endswith(u'.txt'):
response.headers[u'Content-Type'] = u'text/plain; charset=utf-8'
response.headers[b'Content-Type'] = b'text/plain; charset=utf-8'
# Default content-type is text/html
try:
return base.render(url)
Expand Down

0 comments on commit 6913a18

Please sign in to comment.