mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-04-25 17:59:35 +00:00
Restrict content type
to application/x-zip-compressed
This commit is contained in:
parent
b02ba5cba4
commit
9854c629d0
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ elif brand == "MindTheGapps":
|
|||
if res.status_code == 200:
|
||||
assets = json_data["assets"]
|
||||
for asset in assets:
|
||||
if re.match(f'.*{release}.*{abi_map[arch]}.*\.zip$', asset["name"]):
|
||||
if re.match(f'.*{release}.*{abi_map[arch]}.*\.zip$', asset["name"]) and asset["content_type"] == "application/x-zip-compressed":
|
||||
link = asset["browser_download_url"]
|
||||
break
|
||||
elif res.status_code == 403 and x_ratelimit_remaining == '0':
|
||||
|
|
Loading…
Add table
Reference in a new issue