refactor(client): update from deprecated Uri::port to port_part (#1722)
This commit is contained in:
committed by
Sean McArthur
parent
7fb6e3a3ff
commit
69368f433f
@@ -234,8 +234,8 @@ where
|
||||
Some(s) => s,
|
||||
None => return invalid_url(InvalidUrl::MissingAuthority, &self.handle),
|
||||
};
|
||||
let port = match dst.uri.port() {
|
||||
Some(port) => port,
|
||||
let port = match dst.uri.port_part() {
|
||||
Some(port) => port.as_u16(),
|
||||
None => if dst.uri.scheme_part() == Some(&Scheme::HTTPS) { 443 } else { 80 },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user