Add a status string for unknown status numbers
This commit is contained in:
parent
5ea41e5f4b
commit
753ade5efc
@ -242,7 +242,7 @@ class Application(object):
|
||||
headers["Content-Length"] = str(len(answer))
|
||||
|
||||
# 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()))
|
||||
|
||||
# Return response content
|
||||
|
Loading…
Reference in New Issue
Block a user