mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Removed rogue print statement left over from #309
This commit is contained in:
parent
71b46fd9f5
commit
8ac71a6127
1 changed files with 0 additions and 1 deletions
|
|
@ -472,7 +472,6 @@ class Datasette:
|
|||
# On 404 with a trailing slash redirect to path without that slash:
|
||||
@app.middleware("response")
|
||||
def redirect_on_404_with_trailing_slash(request, original_response):
|
||||
print("redirect_on_404_with_trailing_slash", request, original_response)
|
||||
if original_response.status == 404 and request.path.endswith("/"):
|
||||
path = request.path.rstrip("/")
|
||||
if request.query_string:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue