Skip to content
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

Don't overwrite Vary header when setting for cookie access #2317

Closed
davidism opened this issue May 23, 2017 · 2 comments · Fixed by #2322
Closed

Don't overwrite Vary header when setting for cookie access #2317

davidism opened this issue May 23, 2017 · 2 comments · Fixed by #2322

Comments

@davidism
Copy link
Member

If the Vary header is already set, the current session code just adds another header line. What it should do is update the existing header by splitting, adding the new option to the set, joining, and setting the new value. See Django's patch_vary_headers.

Related to #2288

@davidism
Copy link
Member Author

Current code is here:

response.headers.add('Vary', 'Cookie')

@nnja
Copy link
Contributor

nnja commented May 23, 2017

I'll work on this during pycon sprints.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants