From 79543858a94c4fb59cebe85cf8ad9e49932a9882 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Tue, 26 May 2026 16:01:58 +0300 Subject: [PATCH] sites: use new redirect_with_status Signed-off-by: Anirudh Oppiliappan --- sites/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/src/lib.rs b/sites/src/lib.rs index 14a218c3..026fb37a 100644 --- a/sites/src/lib.rs +++ b/sites/src/lib.rs @@ -169,7 +169,7 @@ async fn fetch(req: Request, env: Env, _ctx: Context) -> Result { // Canonical redirect for directory-like paths. if needs_trailing_slash(path) { let redirect_url = with_trailing_slash(&url); - return Response::redirect(redirect_url.parse()?, 308); + return Response::redirect_with_status(redirect_url.parse()?, 308); } // Single KV lookup for the whole domain. -- 2.51.2