diff options
author | Guido van Rossum <guido@python.org> | 1998-12-07 04:08:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-07 04:08:30 (GMT) |
commit | 5c3b384a851b5f8f9a4f9a39a6869528d4444658 (patch) | |
tree | 456ef60ec5757ee23c0871ecffaea717cd07eb5e /Lib | |
parent | 9228cbd0844f9f0a641832b214a47006c77333bb (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/SimpleHTTPServer.py | 2 |
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) |