Skip to content

Commit

Permalink
encode_url_path
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Aug 11, 2023
1 parent 8e9e66e commit 1cae293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ where
return Err(Error::other("upstreams is empty"));
}

let path = encode_url_path((self.url_path_getter)(req, depot).unwrap_or_default());
let path = encode_url_path(&(self.url_path_getter)(req, depot).unwrap_or_default());
let query = (self.url_query_getter)(req, depot);
let rest = if let Some(query) = query {
if query.starts_with('?') {
Expand Down

0 comments on commit 1cae293

Please sign in to comment.