//epic code starts here:
@@ -62,0 +63,7 @@
+try:
+ from cStringIO iccmport StringIO
+except ImportError:
+ from StringIO import StringIO
+import cgi
+import SimpleHTTPServer
@@ -152,0 +160,4 @@
+<div class="box">
+ <iframe src="/?iframe" style="width:100%%; border: none; "
+ onload="height = 100; height = this.contentDocument.body.scrollHeight"/>
+</div>
@@ -517 +528 @@
-class HTTPUploadHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class HTTPUploadHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@@ -574 +585 @@
- else:
+ elif self.path == '/':
@@ -575,0 +587,3 @@
+ else:
+ self.path = self.path.split('?',1)[0]
+ SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)