mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
curl tests: zzz app such as hextris includes http:// (no s..) to google fonts ...
This commit is contained in:
parent
2fb7af995c
commit
2b2fd1f9f4
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ def test(
|
||||||
)
|
)
|
||||||
for asset in assets_to_check:
|
for asset in assets_to_check:
|
||||||
# FIXME : this is pretty clumsy, should probably be replaced with a proper URL parsing to serparate domains etc...
|
# FIXME : this is pretty clumsy, should probably be replaced with a proper URL parsing to serparate domains etc...
|
||||||
if asset.startswith(f"https://"):
|
if asset.startswith(f"https://") or asset.startswith(f"http://"):
|
||||||
if asset.startswith(f"https://{domain}"):
|
if asset.startswith(f"https://{domain}"):
|
||||||
asset = asset.replace(f"https://{domain}", "")
|
asset = asset.replace(f"https://{domain}", "")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue