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 4ce5d56 commit 114cb0dCopy full SHA for 114cb0d
src/client.rs
@@ -218,7 +218,12 @@ impl Client {
218
219
if let Some(query) = endpoint.query() {
220
let query_string = serde_qs::to_string(&query).expect("serialize the query correctly");
221
- url.push_str(&query_string);
+ if !query_string.is_empty() {
222
+ if !url.ends_with('?') {
223
+ url.push('?');
224
+ }
225
+ url.push_str(&query_string);
226
227
}
228
229
let mut request = self.client.request(endpoint.method(), url);
0 commit comments