diff --git a/proxy/src/config.rs b/proxy/src/config.rs index 2ccdd5607..d79bbf746 100644 --- a/proxy/src/config.rs +++ b/proxy/src/config.rs @@ -349,7 +349,7 @@ fn parse_url(s: &str) -> Result { // https://github.com/hyperium/http/issues/127. For now just ignore any // fragment that is there. - HostAndPort::normalize(authority, None) + HostAndPort::try_from(authority) .map_err(|e| ParseError::UrlError(UrlError::AuthorityError(e))) } @@ -366,7 +366,7 @@ fn parse(strings: &Strings, name: &str, parse: Parse) -> Result