fix prefix for lighttpd..
authorTero Marttila <terom@fixme.fi>
Tue, 26 Jan 2010 01:38:16 +0200
changeset 107 9fcf58fb113a
parent 106 26f10ed59c8e
child 108 b81d2fcfa446
fix prefix for lighttpd..
pngtile/handlers.py
--- a/pngtile/handlers.py	Tue Jan 26 01:37:30 2010 +0200
+++ b/pngtile/handlers.py	Tue Jan 26 01:38:16 2010 +0200
@@ -66,7 +66,11 @@
         Handle request for a directory
     """
     
-    prefix = os.path.dirname(req.script_root).rstrip('/')
+    prefix = req.script_root
+    
+    print "req.script_root:", req.script_root
+    print "prefix", prefix
+
 
     return Response(render.dir_html(prefix, name, path), content_type="text/html")
 
@@ -77,7 +81,7 @@
         Handle request for image viewport
     """
     
-    prefix = os.path.dirname(req.script_root).rstrip('/')
+    prefix = req.script_root
 
     # viewport
     return Response(render.img_html(prefix, name, image), content_type="text/html")