mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Better test for Vary header
This commit is contained in:
parent
3f83d4632a
commit
070838bfa1
2 changed files with 6 additions and 2 deletions
|
|
@ -132,8 +132,6 @@ class TestClient:
|
|||
if csrftoken_from is True:
|
||||
csrftoken_from = path
|
||||
token_response = await self._request(csrftoken_from)
|
||||
# Check this had a Vary: Cookie header
|
||||
assert "Cookie" == token_response.headers["vary"]
|
||||
csrftoken = token_response.cookies["ds_csrftoken"]
|
||||
cookies["ds_csrftoken"] = csrftoken
|
||||
post_data["csrftoken"] = csrftoken
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue