Commits

Ian Bicking  committed fb97696

fix path setup in rewrite-map.py (setup-node update required)

  • Participants
  • Parent commits 92047f5

Comments (0)

Files changed (1)

File silverlining/mgr-scripts/rewrite-map.py

             return None, 'addslash', None
         if path.startswith(path_prefix):
             path_prefix = path_prefix.rstrip('/') or '/'
-            return path_prefix, data, path[len(path_prefix):]
+            if path_prefix == '/':
+                rest = path
+            else:
+                rest = path[len(path_prefix):]
+            return path_prefix, data, rest
     else:
         ## FIXME: how should this fail?
         raise LookupError('No application mounted to /')