-
-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestResponse needs to handle multiple set-cookie headers #799
Labels
Comments
This really needs a Turns out I have one of these in Datasette already - The name isn't quite right though. |
I'm going to rename that |
simonw
added a commit
that referenced
this issue
Jun 5, 2020
simonw
added a commit
that referenced
this issue
Jun 5, 2020
simonw
added a commit
that referenced
this issue
Jun 5, 2020
simonw
added a commit
that referenced
this issue
Jun 5, 2020
simonw
added a commit
that referenced
this issue
Jun 5, 2020
simonw
added a commit
that referenced
this issue
Jun 5, 2020
Closes #793. * Rename RequestParameters to MultiParams, refs #799 * Allow tuples as well as lists in MultiParams, refs #799 * Use csrftokens when running tests, refs #799 * Use new csrftoken() function, refs simonw/asgi-csrf#7 * Check for Vary: Cookie hedaer, refs simonw/asgi-csrf#8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seeing this test failure on #798:
It looks like that's happening because the ASGI middleware is adding another set-cookie header - but those two set-cookie headers are combined into one when the TestResponse is constructed:
datasette/tests/fixtures.py
Lines 113 to 127 in 0c064c5
The text was updated successfully, but these errors were encountered: