From c6b64819ffdf4cbecb4ca635caa11d9472b68b5f Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:07:00 +0800 Subject: [PATCH] into_client_request_v1 --- src/weirduri.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/weirduri.rs b/src/weirduri.rs index 73c9dc5..4a8de10 100644 --- a/src/weirduri.rs +++ b/src/weirduri.rs @@ -46,6 +46,12 @@ fn combine_addr_and_port(addr: &url::Host<&str>, port: Option) -> String { impl IntoClientRequest for WeirdUri { fn into_client_request(self) -> Result { + self.into_client_request_v1() + } +} + +impl WeirdUri { + fn into_client_request_v1(self) -> Result { let uri = url::Url::parse(&self.uri).map_err(|_| Error::Url(UrlError::NoPathOrQuery))?; let host = uri.host().ok_or(Error::from(UrlError::EmptyHostName))?;