mirror of
https://github.com/clearml/clearml
synced 2025-05-11 16:10:39 +00:00
Fix downloading artifacts from GCP when the download URI includes unsafe characters
This commit is contained in:
parent
a8746de9eb
commit
60c3a5ef98
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,7 @@ def get_config_object_matcher(**patterns):
|
|||||||
|
|
||||||
def quote_url(url):
|
def quote_url(url):
|
||||||
parsed = urlparse(url)
|
parsed = urlparse(url)
|
||||||
if parsed.scheme not in ("http", "https"):
|
if parsed.scheme not in ("http", "https", "gs"):
|
||||||
return url
|
return url
|
||||||
parsed = parsed._replace(path=quote(parsed.path))
|
parsed = parsed._replace(path=quote(parsed.path))
|
||||||
return urlunparse(parsed)
|
return urlunparse(parsed)
|
||||||
|
Loading…
Reference in New Issue
Block a user