mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add test to demonstrate stripping of extra forward slashes
This commit is contained in:
parent
da0f24fb85
commit
37b14800e5
1 changed files with 5 additions and 0 deletions
|
|
@ -97,3 +97,8 @@ def test_custom_route_pattern_404(custom_pages_client):
|
|||
assert response.status == 404
|
||||
assert "<h1>Error 404</h1>" in response.text
|
||||
assert ">Oh no</" in response.text
|
||||
|
||||
def test_custom_route_pattern_with_slash_slash_302(custom_pages_client):
|
||||
response = custom_pages_client.get("//nastyOpenRedirect/")
|
||||
assert response.status == 302
|
||||
assert response.headers['location'] == "/nastyOpenRedirect"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue