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 2eed823 commit 726b2cfCopy full SHA for 726b2cf
src/http/client.rs
@@ -4642,6 +4642,11 @@ impl Http {
4642
let url = Url::parse(url).map_err(HttpError::Url)?;
4643
let (webhook_id, token) =
4644
crate::utils::parse_webhook(&url).ok_or(HttpError::InvalidWebhook)?;
4645
+ let mut params = url.query_pairs().collect::<Vec<(&str, String)>>();
4646
+ let params = match params.len() {
4647
+ 0 => None,
4648
+ _ => Some(params),
4649
+ };
4650
self.fire(Request {
4651
body: None,
4652
multipart: None,
@@ -4651,7 +4656,7 @@ impl Http {
4656
webhook_id,
4657
token,
4653
4658
},
4654
- params: None,
4659
+ params,
4655
4660
})
4661
.await
4662
}
0 commit comments