Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 884f058

Browse files
committed
Reverting the changeset 5d76a4746d9d made for Issue #12921
2 parents c37f835 + 1e7551d commit 884f058

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def send_error(self, code, message=None):
425425
# using _quote_html to prevent Cross Site Scripting attacks (see bug #1100201)
426426
content = (self.error_message_format %
427427
{'code': code, 'message': _quote_html(message), 'explain': explain})
428-
self.send_response(code, shortmsg)
428+
self.send_response(code, message)
429429
self.send_header("Content-Type", self.error_content_type)
430430
self.send_header('Connection', 'close')
431431
self.end_headers()

Misc/NEWS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,6 @@ Core and Builtins
193193
Library
194194
-------
195195

196-
- Issue #12921: BaseHTTPServer's send_error should send the correct error
197-
response message when send_error includes a message in addition to error
198-
status. Patch submitted by Karl.
199-
200196
- Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when
201197
the list is being resized concurrently.
202198

0 commit comments

Comments
 (0)