This commit is contained in:
Jun Kurihara 2023-02-27 14:42:39 +09:00
commit 0f44f71289
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
4 changed files with 8 additions and 8 deletions

View file

@ -22,7 +22,7 @@ pub(super) fn secure_redirection<B>(
let new_uri = Uri::builder().scheme("https").path_and_query(pq);
let dest_uri = match tls_port {
Some(443) | None => new_uri.authority(server_name),
Some(p) => new_uri.authority(format!("{}:{}", server_name, p)),
Some(p) => new_uri.authority(format!("{server_name}:{p}")),
}
.build()?;
let response = Response::builder()