Accept owned locations in Redirect constructors (#3635)

This commit is contained in:
Joey de Waal
2026-01-30 11:34:46 +00:00
committed by GitHub
parent b1c5ed99c5
commit 7961711fc7
5 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -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()
}