Cast header item into list for Python 3.x compatibility

This commit is contained in:
Guillaume Ayoub 2011-05-01 17:51:27 +02:00
parent 882d70e2cb
commit 0202756540

View File

@ -188,7 +188,7 @@ class Application(object):
# Start response # Start response
status = "%i %s" % (status, client.responses.get(status, "")) status = "%i %s" % (status, client.responses.get(status, ""))
start_response(status, headers.items()) start_response(status, list(headers.items()))
# Return response content # Return response content
return [answer] if answer else [] return [answer] if answer else []