From 2e9a5bfa80a3d69bd11e3d4ca2731861fcc60e22 Mon Sep 17 00:00:00 2001 From: Mateusz <2871798+orhtej2@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:40:28 +0100 Subject: [PATCH] Removed errornous strip --- lib/curl_tests.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 78753ce..f7dbb6a 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -107,11 +107,6 @@ def curl( def validate_and_normalize(effective_url, base, uri): parsed_domain = urlparse(effective_url) - # sometimes assets point to //asset/somethig.css - # when parsed 'asset' becomes a domain, strip extra slashes - while uri.startswith("//"): - uri = uri[1:] - # now, first join base on top of effective_url effective_url = urljoin(effective_url, base) # then potentially relative URI