We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ee228 commit 8241f91Copy full SHA for 8241f91
examples/client.rs
@@ -55,8 +55,9 @@ async fn fetch_url(url: hyper::Uri) -> Result<()> {
55
56
let authority = url.authority().unwrap().clone();
57
58
+ let path = url.path();
59
let req = Request::builder()
- .uri(url)
60
+ .uri(path)
61
.header(hyper::header::HOST, authority.as_str())
62
.body(Empty::<Bytes>::new())?;
63
0 commit comments