Replaced hacked Python server modules with ones which
subclass the python modules.
This commit is contained in:
16
apps/sam/python/src/i2p/I2PCGIHTTPServer.py
Normal file
16
apps/sam/python/src/i2p/I2PCGIHTTPServer.py
Normal 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()
|
||||
|
Reference in New Issue
Block a user