mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-27 19:25:52 +08:00
Merge pull request #234 from r0ckysec/master
fix github api 400 Bad Request
This commit is contained in:
@@ -23,6 +23,8 @@ class GithubAPI(Search):
|
|||||||
self.proxy = self.get_proxy(self.source)
|
self.proxy = self.get_proxy(self.source)
|
||||||
self.header.update(
|
self.header.update(
|
||||||
{'Accept': 'application/vnd.github.v3.text-match+json'})
|
{'Accept': 'application/vnd.github.v3.text-match+json'})
|
||||||
|
self.header.update(
|
||||||
|
{'Authorization': 'token ' + self.token})
|
||||||
|
|
||||||
page = 1
|
page = 1
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user