diff --git a/apps/sam/python/src/i2p/I2PCGIHTTPServer.py b/apps/sam/python/src/i2p/I2PCGIHTTPServer.py
index d5091978366ec3019b4df216c7db11fa5f295e4a..2b1016d784797ec8d1cba7a88f291692a9cc33b8 100644
--- a/apps/sam/python/src/i2p/I2PCGIHTTPServer.py
+++ b/apps/sam/python/src/i2p/I2PCGIHTTPServer.py
@@ -5,6 +5,7 @@ from CGIHTTPServer import nobody_uid, executable
 
 import I2PBaseHTTPServer, I2PSimpleHTTPServer
 
+HTTPServer = I2PBaseHTTPServer.HTTPServer
 class CGIHTTPRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler):
     pass
 def test(HandlerClass = CGIHTTPRequestHandler,
diff --git a/apps/sam/python/src/i2p/I2PSimpleHTTPServer.py b/apps/sam/python/src/i2p/I2PSimpleHTTPServer.py
index c05aac1370e9f33811606e20c2345cd45c8ae2d8..9327475a40c9609fc3c3e67cb9b7381d0e994b52 100644
--- a/apps/sam/python/src/i2p/I2PSimpleHTTPServer.py
+++ b/apps/sam/python/src/i2p/I2PSimpleHTTPServer.py
@@ -8,6 +8,7 @@ __version__ = "0.1.0"
 
 __all__ = ["SimpleHTTPRequestHandler"]
 
+HTTPServer = I2PBaseHTTPServer.HTTPServer
 class SimpleHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
     pass