8000 use application/vnd.github+json · ssppkenny/python-for-android@8f1d40f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f1d40f

Browse files
committed
use application/vnd.github+json
1 parent 9f26b7a commit 8f1d40f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def report_hook(index, blksize, size):
216216
# Mozilla/5.0 doesnt handle redirection for liblzma
217217
url_opener.addheaders = [('User-agent', 'Wget/1.0')]
218218
if self.github_access_token:
219-
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'), ('Accept', 'application/vnd.github.v3.raw')]
219+
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'), ('Accept', 'application/vnd.github+json')]
220220
urlretrieve(url, target, report_hook)
221221
except OSError as e:
222222
attempts += 1

0 commit comments

Comments
 (0)
0