diff options
author | VG <vg@devys.org> | 2014-11-28 21:24:14 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-28 21:24:14 +0100 |
commit | a40fb5c091f33004a250e1128e56dad2701fc054 (patch) | |
tree | 915d94f33fc8e29e89523785a0c478243e422678 | |
parent | 20b89a46aeeeea3790fcabd2330ad58c2f9c119b (diff) | |
download | pasteme-a40fb5c091f33004a250e1128e56dad2701fc054.tar.gz pasteme-a40fb5c091f33004a250e1128e56dad2701fc054.tar.bz2 pasteme-a40fb5c091f33004a250e1128e56dad2701fc054.zip |
add correct header for raw content
-rwxr-xr-x | pasteme.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,8 @@ def route_paste_get(pid, pformat='colored'): except pygments.util.ClassNotFound: pass return bottle.template('paste', content=content) + bottle.response.content_type = 'text/plain; charset=UTF8' # HTTP header + bottle.response.charset = 'utf-8' # used to encode response return content @bottle.error(404) |