diff --git a/crates/binstalk-git-repo-api/src/gh_api_client/release_artifacts.rs b/crates/binstalk-git-repo-api/src/gh_api_client/release_artifacts.rs index 723349e6..718f4c4e 100644 --- a/crates/binstalk-git-repo-api/src/gh_api_client/release_artifacts.rs +++ b/crates/binstalk-git-repo-api/src/gh_api_client/release_artifacts.rs @@ -77,12 +77,8 @@ fn fetch_release_artifacts_restful_api( issue_restful_api( client, &[ - "repos", - &percent_encode_http_url_path(owner).to_compact_string(), - &percent_encode_http_url_path(repo).to_compact_string(), - "releases", - "tags", - &percent_encode_http_url_path(tag).to_compact_string(), + "repos", owner, repo, "releases", "tags", + tag, //&percent_encode_http_url_path(tag).to_compact_string(), ], auth_token, ) diff --git a/crates/binstalk-git-repo-api/src/gh_api_client/repo_info.rs b/crates/binstalk-git-repo-api/src/gh_api_client/repo_info.rs index 496d453c..c2666738 100644 --- a/crates/binstalk-git-repo-api/src/gh_api_client/repo_info.rs +++ b/crates/binstalk-git-repo-api/src/gh_api_client/repo_info.rs @@ -36,16 +36,7 @@ async fn fetch_repo_info_restful_api( GhRepo { owner, repo }: &GhRepo, auth_token: Option<&str>, ) -> Result { - issue_restful_api( - client, - &[ - "repos", - &percent_encode_http_url_path(owner).to_compact_string(), - &percent_encode_http_url_path(repo).to_compact_string(), - ], - auth_token, - ) - .await + issue_restful_api(client, &["repos", owner, repo], auth_token).await } #[derive(Deserialize)]