From a834c03974fdf82cccb4867e5170b5df878d93af Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 31 Jan 2024 09:14:40 -0500 Subject: [PATCH] fix: bug with Actix redirects (#2246) --- integrations/actix/src/lib.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/integrations/actix/src/lib.rs b/integrations/actix/src/lib.rs index b5fb97b61..f4a9a8c14 100644 --- a/integrations/actix/src/lib.rs +++ b/integrations/actix/src/lib.rs @@ -150,14 +150,6 @@ pub fn redirect(path: &str) { to redirect()." ); } - if let Some(response_options) = use_context::() { - response_options.set_status(StatusCode::FOUND); - response_options.insert_header( - header::LOCATION, - header::HeaderValue::from_str(path) - .expect("Failed to create HeaderValue"), - ); - } } /// An Actix [struct@Route](actix_web::Route) that listens for a `POST` request with