mirror of
https://github.com/armbian/dl-router.git
synced 2026-01-06 10:32:39 -08:00
remove leading / from key
This commit is contained in:
@@ -29,7 +29,7 @@ def get_ip():
|
||||
def get_redirect(path, IP):
|
||||
split_path = path.split('/')
|
||||
if len(split_path) == 2:
|
||||
key = "/{}/{}".format(split_path[0], split_path[1])
|
||||
key = "{}/{}".format(split_path[0], split_path[1])
|
||||
new_path = dl_map.get(key, path)
|
||||
return "{}/{}".format(mirror.next(), new_path)
|
||||
if path == '':
|
||||
|
||||
Reference in New Issue
Block a user