We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64dce3a commit a566f5cCopy full SHA for a566f5c
pystac/utils.py
@@ -77,8 +77,10 @@ def safe_urlparse(href: str) -> URLParseResult:
77
if parsed.scheme == "file" and os.name == "nt":
78
if parsed.netloc:
79
path = f"{parsed.netloc}{parsed.path}"
80
- elif parsed.path.startswith("/"):
+ elif parsed.path.startswith("/") and ":" in parsed.path:
81
path = parsed.path[1:]
82
+ else:
83
+ path = parsed.path
84
85
return URLParseResult(
86
scheme=parsed.scheme,
0 commit comments