From 72c1c394017cf720791247b65b3a524f24cef831 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:06:59 +0100 Subject: [PATCH] fix: use urlencoding crate for wally packages --- src/source/wally/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/source/wally/mod.rs b/src/source/wally/mod.rs index 6f2ab48..49d5e4e 100644 --- a/src/source/wally/mod.rs +++ b/src/source/wally/mod.rs @@ -247,9 +247,11 @@ impl PackageSource for WallyPackageSource { let mut request = reqwest .get(format!( - "{}/v1/package-contents/{scope}/{name}/{}", + "{}/v1/package-contents/{}/{}/{}", config.api.as_str().trim_end_matches('/'), - id.version_id().version() + urlencoding::encode(scope), + urlencoding::encode(name), + urlencoding::encode(&id.version_id().version().to_string()) )) .header( "Wally-Version",