remove leading / from key

This commit is contained in:
Lane Jennison
2020-07-27 07:45:43 -04:00
parent 4d30e7df7d
commit 32a34c4f90

View File

@@ -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 == '':