From a40fb5c091f33004a250e1128e56dad2701fc054 Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 28 Nov 2014 21:24:14 +0100 Subject: add correct header for raw content --- pasteme.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3