summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:26:50 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:26:50 (GMT)
commit884f0585a40d2e3203ee0512aa2f5a39ce660556 (patch)
treeac35037009f97e54c8c3526b06f5a04f3aa3b59f /Lib/http
parentc37f835a431822a4756a272c248e3c8e3211443a (diff)
parent1e7551dc87538ef98b1f3081e782a7f27da017c1 (diff)
downloadcpython-884f0585a40d2e3203ee0512aa2f5a39ce660556.zip
cpython-884f0585a40d2e3203ee0512aa2f5a39ce660556.tar.gz
cpython-884f0585a40d2e3203ee0512aa2f5a39ce660556.tar.bz2
Reverting the changeset 5d76a4746d9d made for Issue #12921
Diffstat (limited to 'Lib/http')
-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 18a51fe..c4ac703 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -425,7 +425,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()