From 8c5e58c179db00a74015afc629ee9ab17887c6c8 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 18 Oct 2025 18:34:38 -0400 Subject: [PATCH] bugfix: proxy nested paths i think i broke this a while ago when trying to get the favicon to work oops --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/mirror.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a973587..e1a121b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "allegedly" -version = "0.3.2" +version = "0.3.3" dependencies = [ "anyhow", "async-compression", diff --git a/Cargo.toml b/Cargo.toml index c686bf2..ef2a063 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "allegedly" description = "public ledger server tools and services (for the PLC)" license = "MIT OR Apache-2.0" -version = "0.3.2" +version = "0.3.3" edition = "2024" default-run = "allegedly" diff --git a/src/mirror.rs b/src/mirror.rs index bd74c35..f72c2e2 100644 --- a/src/mirror.rs +++ b/src/mirror.rs @@ -431,9 +431,9 @@ pub async fn serve( .with(GovernorMiddleware::new(did_limiter)) .with(GovernorMiddleware::new(ip_limiter)); - app = app.at("/:any", get(proxy).post(upstream_proxier)); + app = app.at("/*", get(proxy).post(upstream_proxier)); } else { - app = app.at("/:any", get(proxy).post(nope)); + app = app.at("/*", get(proxy).post(nope)); } let app = app -- 2.51.2