mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
chore: upgrade dependencies and migrate to aws-lc-rs (#1333)
This commit is contained in:
@@ -25,10 +25,10 @@ pub fn get_host_addr(req: &request::Request<Body>) -> String {
|
||||
} else {
|
||||
req_host = uri.host().unwrap().to_string();
|
||||
}
|
||||
if let Some(host) = host {
|
||||
if req_host != *host.to_str().unwrap() {
|
||||
return (*host.to_str().unwrap()).to_string();
|
||||
}
|
||||
if let Some(host) = host
|
||||
&& req_host != *host.to_str().unwrap()
|
||||
{
|
||||
return (*host.to_str().unwrap()).to_string();
|
||||
}
|
||||
/*if req.uri_ref().unwrap().host().is_some() {
|
||||
return req.uri_ref().unwrap().host().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user