summaryrefslogtreecommitdiffstats
path: root/Lib/http/server.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:28:18 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-05 10:28:18 (GMT)
commitdf1d3c5c4b5a235b4acd7700991363ad6fa8a3ca (patch)
tree0cca0b45b7772fb39f3517cea4cbd74e706c7fad /Lib/http/server.py
parent24431f180203905ab882c18c7149d903b6b3c629 (diff)
parent884f0585a40d2e3203ee0512aa2f5a39ce660556 (diff)
downloadcpython-df1d3c5c4b5a235b4acd7700991363ad6fa8a3ca.zip
cpython-df1d3c5c4b5a235b4acd7700991363ad6fa8a3ca.tar.gz
cpython-df1d3c5c4b5a235b4acd7700991363ad6fa8a3ca.tar.bz2
Reverting the changeset b87792757ee8 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 bb64ca6..1873b13 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -426,7 +426,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
content = (self.error_message_format %
{'code': code, 'message': _quote_html(message), 'explain': explain})
body = content.encode('UTF-8', 'replace')
- 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.send_header('Content-Length', int(len(body)))