Skip to content

Commit

Permalink
Safe URI for reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Jun 20, 2024
1 parent 0bb3f14 commit 0b8a18e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ async fn cmd_grpc_reflect(
.await
.map_err(|e| e.to_string())?;

let uri = safe_uri(&req.url);

grpc_handle
.lock()
.await
.services(
&req.id,
&req.url,
&uri,
&proto_files
.iter()
.map(|p| PathBuf::from_str(p).unwrap())
Expand Down

0 comments on commit 0b8a18e

Please sign in to comment.