Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrownmozilla committed Feb 7, 2022
1 parent 7749e7d commit 0d66516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ async def test_redirects_strip_leading_slashes(cli):
# also strip leading and trailing whitespace
resp = await check_response(cli, "/%0a/www.evil.com/", status=302, allow_redirects=False)
assert resp.headers['Location'] == "/www.evil.com"
resp = await check_response(cli, "/%0a /www.evil.com %0a%0b/", status=302, allow_redirects=False)
resp = await check_response(cli, "/%0a /www.evil.com %0a%0b/", status=302,
allow_redirects=False)
assert resp.headers['Location'] == "/www.evil.com"


Expand Down

0 comments on commit 0d66516

Please # to comment.