~edwargix/git.sr.ht

12e03fef2598e440528ab3b75f9192fc796a2821 — Drew DeVault 7 years ago 1bafc9b
Set url_map.strict_slashes = False

Fixes 404 errors on /~user/repo/ (vs /~user/repo)
1 files changed, 2 insertions(+), 0 deletions(-)

M gitsrht/app.py
M gitsrht/app.py => gitsrht/app.py +2 -0
@@ 23,6 23,8 @@ class GitApp(SrhtFlask):
    def __init__(self):
        super().__init__("git.sr.ht", __name__)

        self.url_map.strict_slashes = False

        from gitsrht.blueprints.api import api
        from gitsrht.blueprints.public import public
        from gitsrht.blueprints.repo import repo