fix type for query params (#2611)

This commit is contained in:
Lucy
2024-04-23 16:02:11 -04:00
committed by GitHub
parent e9c9a67365
commit df777c63fe

View File

@@ -78,7 +78,7 @@ async fn do_upload(
let req = httpc let req = httpc
.post(url) .post(url)
.header(header::ACCEPT, "text/plain") .header(header::ACCEPT, "text/plain")
.query(&["id", pkg_id]) .query(&[("id", pkg_id)])
.basic_auth(user, Some(pass)) .basic_auth(user, Some(pass))
.body(body) .body(body)
.build()?; .build()?;