Skip to content

Commit

Permalink
Merge pull request #16 from wjhoward/query-param-fix
Browse files Browse the repository at this point in the history
Query param fix
  • Loading branch information
wjhoward authored Nov 28, 2023
2 parents e2c143b + 47f9186 commit fb9d83f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ async fn proxy_handler(
let uri = Uri::builder()
.scheme(scheme)
.authority(backend_location.clone())
.path_and_query(req.uri().path())
.path_and_query(
req.uri()
.path_and_query()
.expect("Unable to extract path and query")
.clone(),
)
.build()
.expect("Unable to extract URI");

Expand Down

0 comments on commit fb9d83f

Please sign in to comment.