Skip to content

Commit f6296fd

Browse files
committed
fix: Return cloned path parameters in RequestContext instead of an empty HashMap
1 parent 4adc325 commit f6296fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc_http_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl RequestContext {
121121

122122
/// Get path parameters (when using route patterns)
123123
pub fn path_params(&self) -> HashMap<String, String> {
124-
HashMap::new()
124+
self.path_params.clone()
125125
}
126126
}
127127

0 commit comments

Comments
 (0)