mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #21793: BaseHTTPRequestHandler again logs response code as numeric,
not as stringified enum. Patch by Demian Brecht.
This commit is contained in:
parent
4a7cc88472
commit
c0a23e6320
3 changed files with 97 additions and 49 deletions
|
@ -517,7 +517,8 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
|
|||
This is called by send_response().
|
||||
|
||||
"""
|
||||
|
||||
if isinstance(code, HTTPStatus):
|
||||
code = code.value
|
||||
self.log_message('"%s" %s %s',
|
||||
self.requestline, str(code), str(size))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue