From 32a34c4f90b12eaece18a6bb1187e2f598a69f71 Mon Sep 17 00:00:00 2001 From: Lane Jennison Date: Mon, 27 Jul 2020 07:45:43 -0400 Subject: [PATCH] remove leading / from key --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 28ba441..8ca4e7e 100644 --- a/app/main.py +++ b/app/main.py @@ -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 == '':