aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2014-11-28 21:24:14 +0100
committerVG <vg@devys.org>2014-11-28 21:24:14 +0100
commita40fb5c091f33004a250e1128e56dad2701fc054 (patch)
tree915d94f33fc8e29e89523785a0c478243e422678
parent20b89a46aeeeea3790fcabd2330ad58c2f9c119b (diff)
downloadpasteme-a40fb5c091f33004a250e1128e56dad2701fc054.tar.gz
pasteme-a40fb5c091f33004a250e1128e56dad2701fc054.tar.bz2
pasteme-a40fb5c091f33004a250e1128e56dad2701fc054.zip
add correct header for raw content
-rwxr-xr-xpasteme.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pasteme.py b/pasteme.py
index 93e569b..6402032 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -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)