mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
'Refactored by Sourcery'
This commit is contained in:
@@ -45,9 +45,7 @@ class Downloader(object):
|
||||
headers = {}
|
||||
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}
|
||||
)
|
||||
headers["Authorization"] = f"token {self.config.personal_access_token}"
|
||||
response = self.config.session.get(
|
||||
url,
|
||||
stream=True,
|
||||
|
||||
Reference in New Issue
Block a user