mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Make sure the link contains ://
This commit is contained in:
@@ -73,7 +73,7 @@ def fake_user_agent() -> str:
|
||||
|
||||
def get_host_from_link(link: str) -> str:
|
||||
|
||||
host = link.split('://', 1)[1]
|
||||
host = link.split('://', 1)[1] if '://' in link else link
|
||||
|
||||
# Remove routes, arguments and anchors
|
||||
if '/' in host:
|
||||
|
||||
Reference in New Issue
Block a user