summaryrefslogtreecommitdiff
path: root/bottle.py
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2019-12-18 12:16:21 +0100
committerMarcel Hellkamp <marc@gsites.de>2019-12-18 12:19:20 +0100
commite33f045a7e87a2779e0cf14a48f29949b429f193 (patch)
treef52f519573813a33fce70546f91a33f31460e6dc /bottle.py
parent085f18615fe8ab63588eebfd25bb90337aac2ba0 (diff)
downloadbottle-e33f045a7e87a2779e0cf14a48f29949b429f193.tar.gz
Fixup for 5c52eb0
Diffstat (limited to 'bottle.py')
-rwxr-xr-xbottle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index d2d1f0c..2d05421 100755
--- a/bottle.py
+++ b/bottle.py
@@ -735,8 +735,8 @@ class Bottle(object):
# follow PEP-3333 (which requires latin1) or used a
# pre-encoding other than utf8 :/
status = status.encode('latin1').decode('utf8')
- headerlist = [k, v.encode('latin1').decode('utf8')
- for k, v in headerlist]
+ headerlist = [(k, v.encode('latin1').decode('utf8'))
+ for (k, v) in headerlist]
rs.status = status
for name, value in headerlist:
rs.add_header(name, value)