We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04bcf1a commit 8b5cccaCopy full SHA for 8b5ccca
src/lib.rs
@@ -76,7 +76,16 @@ fn make_request(
76
let mut parts = base.into_parts();
77
parts.path_and_query = Some(
78
match parts.path_and_query {
79
- Some(path) => format!("{}{}", path, path_suffix).try_into(),
+ Some(path_and_query) => {
80
+ let mut path = path_and_query.path().to_owned();
81
+ if !path.ends_with('/') {
82
+ path.push('/');
83
+ }
84
+ path += path_suffix;
85
+
86
+ // Drop query parameters
87
+ path.try_into()
88
89
None => path_suffix.try_into(),
90
}
91
.expect("api_uri path"),
0 commit comments