diff --git a/files/__main__.py b/files/__main__.py index 9b3832f92f..f5e88bf906 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -106,6 +106,7 @@ def before_request(): request.path = request.path.rstrip('/') request.full_path = request.full_path.rstrip('?').rstrip('/') + if not request.path: request.path = '/' @app.after_request def after_request(response):