From 2b2fd1f9f4459c767b738820bf6acca747d4698c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 1 Sep 2024 03:18:56 +0200 Subject: [PATCH] curl tests: zzz app such as hextris includes http:// (no s..) to google fonts ... --- lib/curl_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index f7c70d4..8243a5f 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -213,7 +213,7 @@ def test( ) for asset in assets_to_check: # 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}"): asset = asset.replace(f"https://{domain}", "") else: