Skip to content

Commit

Permalink
Merge pull request #256 from hatoo/fix-uri
Browse files Browse the repository at this point in the history
fix uri
  • Loading branch information
hatoo authored Jul 9, 2023
2 parents 131ec8e + c0e373d commit ab4cc5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Fix sending HTTP uri #255

# 0.6.0 (2023-06-24)

- Support IDNA #236
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl Client {

fn request(&self, url: &Url) -> Result<http::Request<hyper::Body>, ClientError> {
let mut builder = http::Request::builder()
.uri(url.as_str())
.uri(&url[url::Position::BeforePath..])
.method(self.method.clone())
.version(self.http_version);

Expand Down

0 comments on commit ab4cc5e

Please sign in to comment.