Replaced hacked Python server modules with ones which

subclass the python modules.
This commit is contained in:
aum
2004-07-31 18:45:13 +00:00
committed by zzz
parent 823f4a26b3
commit d8ee5c180b
4 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#! /usr/bin/env python
import SimpleHTTPServer
import I2PBaseHTTPServer
__version__ = "0.1.0"
__all__ = ["SimpleHTTPRequestHandler"]
class SimpleHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
pass
def test(HandlerClass = SimpleHTTPRequestHandler,
ServerClass = I2PBaseHTTPServer.BaseHTTPServer):
I2PBaseHTTPServer.test(HandlerClass, ServerClass)
if __name__ == '__main__':
test()