Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Dec 26, 2024
1 parent 6ee8375 commit 36298c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fl_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct FlUrlResponse {
impl Debug for FlUrlResponse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("FlUrlResponse")
.field("url", &self.url.as_str())
.field("url", &self.url.to_string())
.field("status_code", &self.status_code)
.finish()
}
Expand Down
4 changes: 3 additions & 1 deletion src/fl_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,11 @@ impl FlUrl {
body = self.compress_body(body);
}

let path_and_query = self.url.get_path_and_query();

MyHttpRequest::new(
method,
self.url.get_path_and_query(),
&path_and_query,
Version::HTTP_11,
self.headers.get_builder(),
body,
Expand Down

0 comments on commit 36298c9

Please sign in to comment.