diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-03-05 10:25:58 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-03-05 10:25:58 (GMT) |
commit | 1e7551dc87538ef98b1f3081e782a7f27da017c1 (patch) | |
tree | d444df036c3c22a53eff4cb84f8419d389bf685d /Lib | |
parent | 3fb066d286af3ec5b89b871628b01081deda9039 (diff) | |
download | cpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.zip cpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.tar.gz cpython-1e7551dc87538ef98b1f3081e782a7f27da017c1.tar.bz2 |
Reverting the changeset 5126e62c60af made for Issue #12921
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/server.py | 2 |
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() |