mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-12 15:00:04 +00:00
GhApiClient
: Fallback to unauthorized mode if auth token is invalid (#1121)
Fixed #850 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
351b9d074a
commit
2acba14b41
2 changed files with 61 additions and 35 deletions
|
@ -83,7 +83,7 @@ pub(super) enum FetchReleaseRet {
|
|||
/// Returns 404 if not found
|
||||
pub(super) async fn fetch_release_artifacts(
|
||||
client: &remote::Client,
|
||||
GhRelease { owner, repo, tag }: GhRelease,
|
||||
GhRelease { owner, repo, tag }: &GhRelease,
|
||||
auth_token: Option<&str>,
|
||||
) -> Result<FetchReleaseRet, GhApiError> {
|
||||
let mut request_builder = client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue