This commit is contained in:
Kyle Sanderson 2023-08-27 20:03:49 -07:00
commit 7baeb716a8

View file

@ -215,7 +215,7 @@ class API(object):
protocol = path.split('://')[0]
path = path.replace(protocol, protocol.lower())
if path.startswith('http') or path.startswith('ftp') or path.startswith('sftp'):
if path.startswith('http') or path.startswith('ftp') or path.startswith('sftp') or path.startswith('dav'):
rs = re.search("(.*?://.+?/)(.+)", path)
if rs:
path = rs.group(1) + urlquote(rs.group(2))