From 20605f7c335773760b4ebf0a4928411f733848cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 28 Oct 2021 16:24:58 +0200 Subject: [PATCH] Add / to end of domain if not exists --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index a018965..4d002f8 100644 --- a/main.py +++ b/main.py @@ -17,6 +17,8 @@ try: domain = os.environ["DOMAIN"] except KeyError: sys.exit("Environment variable 'DOMAIN' is missing!") +if not domain.endswith("/"): + domain += "/" @app.post("/uploadfiles/")