Commits

ewdurbin committed 6c5f315 Merge

merge default

Comments (0)

Files changed (1)

 
     def packages(self):
         path = self.env.get('PATH_INFO')
+        parts = path.split("/")
+
+        if len(parts) < 5 and not path.endswith("/"):
+            raise Redirect("/packages" + path + "/")
 
         # I expect that nginx will do the right thing if it doesn't find the
         # actual file when resolving the X-accel headers.