summaryrefslogtreecommitdiffstats
path: root/Lib/SimpleHTTPServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-07 04:08:30 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-07 04:08:30 (GMT)
commit5c3b384a851b5f8f9a4f9a39a6869528d4444658 (patch)
tree456ef60ec5757ee23c0871ecffaea717cd07eb5e /Lib/SimpleHTTPServer.py
parent9228cbd0844f9f0a641832b214a47006c77333bb (diff)
downloadcpython-5c3b384a851b5f8f9a4f9a39a6869528d4444658.zip
cpython-5c3b384a851b5f8f9a4f9a39a6869528d4444658.tar.gz
cpython-5c3b384a851b5f8f9a4f9a39a6869528d4444658.tar.bz2
Patch by Jeff Rush:
In SimpleHTTPServer.py, the server specified in test() should be BaseHTTPServer.HTTPServer, in case the request handler should want to reference the two attributes added by BaseHTTPServer.server_bind: self.server_name = hostname self.server_port = port There was some Bobo CGI code that wanted access to those attributes.
Diffstat (limited to 'Lib/SimpleHTTPServer.py')
-rw-r--r--Lib/SimpleHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py
index 717a472..9260e7e 100644
--- a/Lib/SimpleHTTPServer.py
+++ b/Lib/SimpleHTTPServer.py
@@ -148,7 +148,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def test(HandlerClass = SimpleHTTPRequestHandler,
- ServerClass = SocketServer.TCPServer):
+ ServerClass = BaseHTTPServer.HTTPServer):
BaseHTTPServer.test(HandlerClass, ServerClass)