Revert "remove the list from response.vary. not sure why I was getting an error using openid without it, but everything seems to be working fine now"

This reverts commit 05ceada051.

It turns out the reason for this in the first place was werkzeug
backwards compatibility.
This commit is contained in:
Christopher Allan Webber
2013-07-10 17:58:30 -05:00
parent 8cd4f195b8
commit 53d78991d7

View File

@@ -111,7 +111,7 @@ class CsrfMeddleware(BaseMeddleware):
httponly=True)
# update the Vary header
response.vary = (getattr(response, 'vary', None) or []) + ['Cookie']
response.vary = list(getattr(response, 'vary', None) or []) + ['Cookie']
def _make_token(self, request):
"""Generate a new token to use for CSRF protection."""