mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
9228cbd084
commit
5c3b384a85
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
|
||||
|
||||
def test(HandlerClass = SimpleHTTPRequestHandler,
|
||||
ServerClass = SocketServer.TCPServer):
|
||||
ServerClass = BaseHTTPServer.HTTPServer):
|
||||
BaseHTTPServer.test(HandlerClass, ServerClass)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue