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,16 @@
#! /usr/bin/env python
import CGIHTTPServer
from CGIHTTPServer import nobody_uid, executable
import I2PBaseHTTPServer, I2PSimpleHTTPServer
class CGIHTTPRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler):
pass
def test(HandlerClass = CGIHTTPRequestHandler,
ServerClass = I2PBaseHTTPServer.HTTPServer):
I2PSimpleHTTPServer.test(HandlerClass, ServerClass)
if __name__ == '__main__':
test()