Commit c0a23e63 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #21793: BaseHTTPRequestHandler again logs response code as numeric,

not as stringified enum.  Patch by Demian Brecht.
parent 4a7cc884
......@@ -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))
......
This diff is collapsed.
......@@ -17,6 +17,9 @@ Core and Builtins
Library
-------
- Issue #21793: BaseHTTPRequestHandler again logs response code as numeric,
not as stringified enum. Patch by Demian Brecht.
- Issue #23476: In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST
flag on certificate stores when it is available.
......
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