2004-07-31 18:45:13 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
import CGIHTTPServer
|
|
|
|
from CGIHTTPServer import nobody_uid, executable
|
|
|
|
|
|
|
|
import I2PBaseHTTPServer, I2PSimpleHTTPServer
|
|
|
|
|
2004-08-01 03:21:11 +00:00
|
|
|
HTTPServer = I2PBaseHTTPServer.HTTPServer
|
2004-07-31 18:45:13 +00:00
|
|
|
class CGIHTTPRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler):
|
|
|
|
pass
|
|
|
|
def test(HandlerClass = CGIHTTPRequestHandler,
|
|
|
|
ServerClass = I2PBaseHTTPServer.HTTPServer):
|
|
|
|
I2PSimpleHTTPServer.test(HandlerClass, ServerClass)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test()
|
|
|
|
|