Merge pull request #5154 from achillesrasquinha/py3

FIX Http Redirect Headers
This commit is contained in:
Achilles Rasquinha 2018-03-08 19:01:43 +05:30 committed by GitHub
commit 22f94adf2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ def build_response(path, data, http_status_code, headers=None):
if headers:
for key, val in iteritems(headers):
response.headers[str(key.encode("utf-8"))] = val.encode("utf-8")
response.headers[key] = val.encode("utf-8")
return response