mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use text/html for CSRF error page, refs #2390
This commit is contained in:
parent
160d82f06e
commit
05dfd34fd0
2 changed files with 4 additions and 2 deletions
|
|
@ -1171,4 +1171,5 @@ async def test_custom_csrf_error(ds_client):
|
|||
cookies={"csrftoken": "x"},
|
||||
)
|
||||
assert response.status_code == 403
|
||||
assert response.headers["content-type"] == "text/html; charset=utf-8"
|
||||
assert "Error code is FORM_URLENCODED_MISMATCH." in response.text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue