From df777c63fe651a6d91fb75f088bfaef0837aeb60 Mon Sep 17 00:00:00 2001 From: Lucy <12953208+elvece@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:02:11 -0400 Subject: [PATCH] fix type for query params (#2611) --- core/startos/src/registry/admin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/startos/src/registry/admin.rs b/core/startos/src/registry/admin.rs index 7cb734d8c..e994b5c53 100644 --- a/core/startos/src/registry/admin.rs +++ b/core/startos/src/registry/admin.rs @@ -78,7 +78,7 @@ async fn do_upload( let req = httpc .post(url) .header(header::ACCEPT, "text/plain") - .query(&["id", pkg_id]) + .query(&[("id", pkg_id)]) .basic_auth(user, Some(pass)) .body(body) .build()?;