mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:48:28 +02:00
Safe URI for reflection
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user