From cb1f2df8ee43c6c6950420fe5262994b626720da Mon Sep 17 00:00:00 2001 From: enki Date: Sun, 17 May 2026 23:41:20 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20.torrent=20extension=20from=20rou?= =?UTF-8?q?te=20=E2=80=94=20axum=20disallows=20mixed=20literal+param=20in?= =?UTF-8?q?=20path=20segment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index c67dd46..f0fedec 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -23,7 +23,7 @@ pub fn router() -> Router { .route("/ui/publishers/{pubkey}/unblock", post(publishers::unblock_handler)) .route("/ui/publishers/{pubkey}/mute", post(publishers::mute_handler)) .route("/ui/published", get(published::handler)) - .route("/torrent/{info_hash}.torrent", get(torrent_blob_handler)) + .route("/torrent/{info_hash}", get(torrent_blob_handler)) } /// Serve a cached .torrent file by info_hash.