mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 11:58:37 +09:00
🐛 Use PAT only for GitHub
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ class Downloader(object):
|
||||
self._QUEUE_LENGTH += 1
|
||||
start = perf_counter()
|
||||
headers = {}
|
||||
if self.config.personal_access_token:
|
||||
if self.config.personal_access_token and "github" in url:
|
||||
logger.debug("Using personal access token")
|
||||
headers.update(
|
||||
{"Authorization": "token " + self.config.personal_access_token}
|
||||
|
||||
Reference in New Issue
Block a user