[update] fix User-Agent (#8836)
fixes regression introduced in a28fbbc3c6
This commit is contained in:
@@ -195,7 +195,7 @@ class UpdateExtractor(Extractor):
|
||||
url = f"{self.root_api}/repos/{path_repo}/releases/{path_tag}"
|
||||
headers = {
|
||||
"Accept": "application/vnd.github+json",
|
||||
"User-Agent": util.USERAGENT,
|
||||
"User-Agent": util.USERAGENT_GALLERYDL,
|
||||
"X-GitHub-Api-Version": "2022-11-28",
|
||||
}
|
||||
data = self.request(url, headers=headers, notfound="tag").json()
|
||||
|
||||
Reference in New Issue
Block a user