Skip to content

Commit

Permalink
use application/vnd.github+json
Browse files Browse the repository at this point in the history
  • Loading branch information
brentpicasso committed Oct 18, 2024
1 parent 9f26b7a commit 8f1d40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def report_hook(index, blksize, size):
# Mozilla/5.0 doesnt handle redirection for liblzma
url_opener.addheaders = [('User-agent', 'Wget/1.0')]
if self.github_access_token:
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'), ('Accept', 'application/vnd.github.v3.raw')]
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'), ('Accept', 'application/vnd.github+json')]
urlretrieve(url, target, report_hook)
except OSError as e:
attempts += 1
Expand Down

0 comments on commit 8f1d40f

Please sign in to comment.