From 32611255a4a213b5b024a88a54976d99d6cc91ce Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 1 Sep 2024 03:27:12 +0200 Subject: [PATCH] curl tests: aaaaand some assets url start with // --- lib/curl_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 8243a5f..250fbe6 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -213,6 +213,8 @@ 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"//"): + asset = f"https:{asset}" if asset.startswith(f"https://") or asset.startswith(f"http://"): if asset.startswith(f"https://{domain}"): asset = asset.replace(f"https://{domain}", "")