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