diff options
author | Marcel Hellkamp <marc@gsites.de> | 2019-12-18 12:16:21 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2019-12-18 12:19:20 +0100 |
commit | e33f045a7e87a2779e0cf14a48f29949b429f193 (patch) | |
tree | f52f519573813a33fce70546f91a33f31460e6dc /bottle.py | |
parent | 085f18615fe8ab63588eebfd25bb90337aac2ba0 (diff) | |
download | bottle-e33f045a7e87a2779e0cf14a48f29949b429f193.tar.gz |
Fixup for 5c52eb0
Diffstat (limited to 'bottle.py')
-rwxr-xr-x | bottle.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |