mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-15 10:06:48 +02:00
Make sure the link contains ://
This commit is contained in:
parent
95ee79818f
commit
8650f7f979
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue