mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Set default headers
This commit is contained in:
@@ -5,10 +5,7 @@ import random
|
||||
class Github:
|
||||
def __init__(self):
|
||||
self.utils = utils.Utils()
|
||||
self.headers = {
|
||||
"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
|
||||
}
|
||||
self.fetcher = resource_fetcher.ResourceFetcher(self.headers)
|
||||
self.fetcher = resource_fetcher.ResourceFetcher()
|
||||
|
||||
def get_latest_commit(self, owner, repo, branch="main"):
|
||||
url = "https://github.com/{}/{}/commits/{}".format(owner, repo, branch)
|
||||
|
||||
Reference in New Issue
Block a user