~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH builds.sr.ht v2] Set url_map.strict_slashes = False

Details
Message ID
<20230627083939.21505-1-denis@laxalde.org>
DKIM signature
missing
Download raw message
Patch: +2 -0
This should fix 404 when requesting /~<username>/ instead of
/~<username>, the rule defining the route.
---
 buildsrht/app.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/buildsrht/app.py b/buildsrht/app.py
index 0eeca8d..e9f5349 100644
--- a/buildsrht/app.py
@@ -24,6 +24,8 @@ class BuildApp(SrhtFlask):
        super().__init__("builds.sr.ht", __name__,
                oauth_service=BuildOAuthService())

        self.url_map.strict_slashes = False

        from buildsrht.blueprints.admin import admin
        from buildsrht.blueprints.api import api
        from buildsrht.blueprints.jobs import jobs
-- 
2.39.2

[builds.sr.ht/patches] build failed

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CTNATQE6SICG.6LX8NE8FXM1M@cirno2>
In-Reply-To
<20230627083939.21505-1-denis@laxalde.org> (view parent)
DKIM signature
missing
Download raw message
builds.sr.ht/patches: FAILED in 4m14s

[Set url_map.strict_slashes = False][0] v2 from [Denis Laxalde][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/42191
[1]: denis@laxalde.org

✗ #1014405 FAILED  builds.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/1014405
✓ #1014404 SUCCESS builds.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/1014404
✓ #1014406 SUCCESS builds.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/1014406
Details
Message ID
<CTUZ1QURV5CG.6VI1MEWAIJJ1@taiga>
In-Reply-To
<20230627083939.21505-1-denis@laxalde.org> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   93a5471..979c15e  master -> master
Reply to thread Export thread (mbox)