Cast header item into list for Python 3.x compatibility
This commit is contained in:
parent
882d70e2cb
commit
0202756540
@ -188,7 +188,7 @@ class Application(object):
|
||||
|
||||
# Start response
|
||||
status = "%i %s" % (status, client.responses.get(status, ""))
|
||||
start_response(status, headers.items())
|
||||
start_response(status, list(headers.items()))
|
||||
|
||||
# Return response content
|
||||
return [answer] if answer else []
|
||||
|
Loading…
Reference in New Issue
Block a user