Safe URI for reflection

This commit is contained in:
Gregory Schier
2024-06-20 13:11:40 -07:00
parent ba9b914303
commit 0d106bdd90

View File

@@ -135,12 +135,14 @@ async fn cmd_grpc_reflect(
.await .await
.map_err(|e| e.to_string())?; .map_err(|e| e.to_string())?;
let uri = safe_uri(&req.url);
grpc_handle grpc_handle
.lock() .lock()
.await .await
.services( .services(
&req.id, &req.id,
&req.url, &uri,
&proto_files &proto_files
.iter() .iter()
.map(|p| PathBuf::from_str(p).unwrap()) .map(|p| PathBuf::from_str(p).unwrap())