Skip to content

Commit

Permalink
Added a check for http:// in _check_fspath
Browse files Browse the repository at this point in the history
  • Loading branch information
turetske committed May 20, 2024
1 parent fbc767f commit 34d345c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pelicanfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ def _check_fspath(self, path: str) -> str:
filesystem object and return the path.
"""
if not path.startswith("/"):
# This can potentially be an https:// path if it comes from a get_mapper call
if path.startswith("https://"):
# This can potentially be an https:// or http:// path if it comes from a get_mapper call
if path.startswith("https://") or path.startswith("http://"):
http_url = urllib.parse.urlparse(path)
path = http_url.path
else:
Expand Down

0 comments on commit 34d345c

Please sign in to comment.