- commit
- b1056a1a02cbf0a79150ce7cfc856db29bfd2119
- parent
- ae23a4f9d880a822d07decedfbf36d7d9ea161d8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-02-07 13:22
normalize trailing slash
Diffstat
M | neddit.py | 4 | +++- |
1 files changed, 3 insertions, 1 deletions
diff --git a/neddit.py b/neddit.py
@@ -147,7 +147,9 @@ if __name__ == '__main__': 147 147 parser.add_argument('--port', type=int, default=8000) 148 148 args = parser.parse_args() 149 149150 -1 app = web.Application()-1 150 app = web.Application(middlewares=[ -1 151 web.normalize_path_middleware(), -1 152 ]) 151 153 app.router.add_static('/static', BASE_DIR / 'static') 152 154 app.router.add_get('', generic) 153 155 app.router.add_get('/favicon.ico', favicon)