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
@@ -86,7 +86,7 @@ async fn redirect_http_to_https(ports: Ports) {
let redirect = move |uri: Uri| async move {
match make_https(uri, ports.https) {
Ok(uri) => Ok(Redirect::permanent(&uri.to_string())),
Ok(uri) => Ok(Redirect::permanent(uri.to_string())),
Err(error) => {
tracing::warn!(%error, "failed to convert URI to HTTPS");
Err(StatusCode::BAD_REQUEST)