mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use cookies when accessing csrftoken_from
This commit is contained in:
parent
966eec7f75
commit
3359d54a4e
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class TestClient:
|
|||
if csrftoken_from is not None:
|
||||
if csrftoken_from is True:
|
||||
csrftoken_from = path
|
||||
token_response = await self._request(csrftoken_from)
|
||||
token_response = await self._request(csrftoken_from, cookies=cookies)
|
||||
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