mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Accept owned locations in Redirect constructors (#3635)
This commit is contained in:
@@ -379,7 +379,7 @@ where
|
||||
});
|
||||
|
||||
if let Some(new_uri) = new_uri {
|
||||
Redirect::permanent(&new_uri.to_string()).into_response()
|
||||
Redirect::permanent(new_uri.to_string()).into_response()
|
||||
} else {
|
||||
StatusCode::BAD_REQUEST.into_response()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user