Unverified Commit 8650f7f9 authored by Matheus Felipe's avatar Matheus Felipe
Browse files

Make sure the link contains ://

parent 95ee7981
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment