Skip to content

Commit

Permalink
Merge pull request #2 from Niels-Be/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan authored Oct 27, 2024
2 parents c73c891 + 8b06baf commit 70be309
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,11 @@ fn proxy_dst(dst: &Uri, proxy: &Uri) -> io::Result<Uri> {
.ok_or_else(|| io_err(format!("proxy uri missing host: {}", proxy)))?
.clone(),
)
.path_and_query(dst.path_and_query().unwrap().clone())
.path_and_query(
dst.path_and_query()
.ok_or_else(|| io_err(format!("dst uri missing path: {}", proxy)))?
.clone(),
)
.build()
.map_err(|err| io_err(format!("other error: {}", err)))
}

0 comments on commit 70be309

Please sign in to comment.