diff options
| author | user <user@node5.net> | 2024-02-27 20:48:53 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-02-27 20:48:53 +0100 |
| commit | 766e700236a83b073b66ee60976f332ec1b4975c (patch) | |
| tree | 634f2316f1654b940b9ab1dbeb9add700e410eca /src | |
| parent | b7e7c7b4ee07c624f8a69972a0df6dd13c3b6e02 (diff) | |
fix / comments not loading
Diffstat (limited to 'src')
| -rw-r--r-- | src/blog_node5_net.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/blog_node5_net.py b/src/blog_node5_net.py index 4508109..98e2d78 100644 --- a/src/blog_node5_net.py +++ b/src/blog_node5_net.py @@ -37,8 +37,9 @@ def inject_common(): def strip_trailing_slash(path): - stripped_path = path if not path[len(path) - 1] == '/' else path[:-1] - return stripped_path + if path != '/': + path = path if not path[len(path) - 1] == '/' else path[:-1] + return path @app.route('/comment', methods=['POST']) |
