Skip to content

Commit

Permalink
Removes GitHub API headers when redirected (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon authored Feb 25, 2024
1 parent 1bb56ed commit 35e11e5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
if artifact.name == "build-info":
info = artifact
req = Request(info.archive_download_url, None, {
"Authorization": f"token {tok}",
"Accept": "application/vnd.github+json"
})
req = Request(info.archive_download_url)
req.add_unredirected_header("Authorization", f"token {tok}")
req.add_unredirected_header("Accept", "application/vnd.github+json")
with urlopen(req) as info:
zip = ZipFile(info)
Expand Down

0 comments on commit 35e11e5

Please sign in to comment.