Skip to content

Commit

Permalink
Removed errornous strip
Browse files Browse the repository at this point in the history
  • Loading branch information
orhtej2 authored and Salamandar committed Dec 2, 2024
1 parent 168c26e commit 2e9a5bf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/curl_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e9a5bf

Please sign in to comment.