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

Skip to content

Commit 1e7551d

Browse files
committed
Reverting the changeset 5126e62c60af made for Issue #12921
1 parent 3fb066d commit 1e7551d

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
@@ -421,7 +421,7 @@ def send_error(self, code, message=None):
421421
# using _quote_html to prevent Cross Site Scripting attacks (see bug #1100201)
422422
content = (self.error_message_format %
423423
{'code': code, 'message': _quote_html(message), 'explain': explain})
424-
self.send_response(code, shortmsg)
424+
self.send_response(code, message)
425425
self.send_header("Content-Type", self.error_content_type)
426426
self.send_header('Connection', 'close')
427427
self.end_headers()

Misc/NEWS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,6 @@ Core and Builtins
233233
Library
234234
-------
235235

236-
- Issue #12921: BaseHTTPServer's send_error should send the correct error
237-
response message when send_error includes a message in addition to error
238-
status. Patch submitted by Karl.
239-
240236
- Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when
241237
the list is being resized concurrently.
242238

0 commit comments

Comments
 (0)