strip leading slash
a leading slash causes `url::Url` to replace the entire existing path
This commit is contained in:
parent
83c236a02f
commit
ec3a9e74c4
|
@ -488,6 +488,9 @@ fn sanitize_path_arg(mut path: &str) -> eyre::Result<String> {
|
|||
out.push_str(&head.to_snake_case());
|
||||
out.push('}');
|
||||
}
|
||||
if out.starts_with("/") {
|
||||
out.remove(0);
|
||||
}
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
|
|
791
src/generated.rs
791
src/generated.rs
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue