Add a status string for unknown status numbers

This commit is contained in:
Guillaume Ayoub 2011-07-20 23:37:18 +02:00
parent 5ea41e5f4b
commit 753ade5efc

View File

@ -242,7 +242,7 @@ class Application(object):
headers["Content-Length"] = str(len(answer)) headers["Content-Length"] = str(len(answer))
# Start response # Start response
status = "%i %s" % (status, client.responses.get(status, "")) status = "%i %s" % (status, client.responses.get(status, "Unknown"))
start_response(status, list(headers.items())) start_response(status, list(headers.items()))
# Return response content # Return response content