Commit 37f7c039 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: make format_request log response code as 000 if no response was served to the user

parent 58bcac80
...@@ -219,7 +219,7 @@ class WSGIHandler(BaseHTTPServer.BaseHTTPRequestHandler): ...@@ -219,7 +219,7 @@ class WSGIHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.client_address[0], self.client_address[0],
self.log_date_time_string(), self.log_date_time_string(),
self.requestline, self.requestline,
self.status.split()[0], (self.status or '000').split()[0],
self.response_length, self.response_length,
self.time_finish - self.time_start) self.time_finish - self.time_start)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment