summaryrefslogtreecommitdiffstats
path: root/Lib/http/server.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:25:58 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:25:58 (GMT)
commit1e7551dc87538ef98b1f3081e782a7f27da017c1 (patch)
treed444df036c3c22a53eff4cb84f8419d389bf685d /Lib/http/server.py
parent3fb066d286af3ec5b89b871628b01081deda9039 (diff)
downloadcpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.zip
cpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.tar.gz
cpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.tar.bz2
Reverting the changeset 5126e62c60af made for Issue #12921
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r--Lib/http/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index 22fc035..5569037 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -421,7 +421,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
# using _quote_html to prevent Cross Site Scripting attacks (see bug #1100201)
content = (self.error_message_format %
{'code': code, 'message': _quote_html(message), 'explain': explain})
- self.send_response(code, shortmsg)
+ self.send_response(code, message)
self.send_header("Content-Type", self.error_content_type)
self.send_header('Connection', 'close')
self.end_headers()