From 3a6eba5865365ef232c8d99414fc5a4278b1a73f Mon Sep 17 00:00:00 2001
From: Roman Karwacik <roman.karwacik@rwth-aachen.de>
Date: Mon, 25 Jul 2022 19:59:37 +0200
Subject: [PATCH] subpath should also work

---
 server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.py b/server.py
index 36ebc5a..b073724 100644
--- a/server.py
+++ b/server.py
@@ -550,7 +550,7 @@ def auth(): #pylint: disable=too-many-branches
 		return Response("Login required", 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
 	return "Not allowed", 403
 
-@app.route('/files/<filename>')
+@app.route('/files/<path:filename>')
 def files(filename):
 	if config.get("S3_ACCESS_KEY") and config.get("S3_SECRET_KEY"):
 		s3_client = b3_session.client('s3', endpoint_url=config["S3_ENDPOINT"])
-- 
GitLab