1. ewdurbin
  2. pypi

Commits

ewdurbin  committed 6c5f315 Merge

merge default

  • Participants
  • Parent commits 1356283, f25e81d
  • Branches default

Comments (0)

Files changed (1)

File webui.py

View file
  • Ignore whitespace
 
     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.