Skip to content

Commit

Permalink
Account for actual colons in the path part
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Nov 12, 2023
1 parent 824f2ad commit 637ee56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_uri(uri: str) -> Tuple[str, str]:
else:
return parsed.scheme, path
return parsed.scheme, path
elif parsed.scheme == '' and ':' in parsed.path:
elif parsed.scheme == '' and ':' in parsed.path.split('/')[0]:
# workaround for bug in urllib.parse.urlparse
return parsed.path.split(':')[0], uri
return parsed.scheme, uri
Expand Down

0 comments on commit 637ee56

Please sign in to comment.