From eca15ce26f09996775d42ba1f641ebfbc4a00df8 Mon Sep 17 00:00:00 2001 From: Ralf Schmitt Date: Mon, 1 Aug 2011 22:06:36 +0200 Subject: [PATCH] redirect to urls with trailing slash under /simple/. --- pypiserver/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pypiserver/core.py b/pypiserver/core.py index 7a7fdb1..644233d 100755 --- a/pypiserver/core.py +++ b/pypiserver/core.py @@ -83,6 +83,10 @@ def simpleindex(): @route("/simple/:prefix") +def simple_redirect(prefix): + return redirect("/simple/%s/" % prefix) + + @route("/simple/:prefix/") def simple(prefix=""): files = packages.find_packages(prefix)