Add / to end of domain if not exists

This commit is contained in:
2021-10-28 16:24:58 +02:00
parent ba28b4d7b7
commit 20605f7c33

View File

@ -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/")