mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
fix github api 400 Bad Request
Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param
This commit is contained in:
@@ -23,6 +23,8 @@ class GithubAPI(Search):
|
||||
self.proxy = self.get_proxy(self.source)
|
||||
self.header.update(
|
||||
{'Accept': 'application/vnd.github.v3.text-match+json'})
|
||||
self.header.update(
|
||||
{'Authorization': 'token ' + self.token})
|
||||
|
||||
page = 1
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user