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