Skip to content

Commit

Permalink
Update github-api-helper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Mar 31, 2023
1 parent ef43818 commit b4489f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github-api-helper.ts
Expand Up @@ -134,7 +134,7 @@ async function downloadArchive(
repo: repo,
ref: commit || ref
})
if (response.status != 302) {
if (response.status != 200) {

This comment has been minimized.

Copy link
@dscho

dscho Mar 31, 2023

Contributor

could we accept both 200 and 302? And: could the commit message please provide context for this change?

This comment has been minimized.

Copy link
@dscho

dscho Mar 31, 2023

Contributor

sorry, I meant to say this in the PR instead. Repeated here: b4489f0#r1154072980

throw new Error(
`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`
)
Expand Down

0 comments on commit b4489f0

Please sign in to comment.