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 commit is contained in:
Rodney Ewing 2013-07-10 10:37:13 -07:00
parent b3c4cbd5c1
commit 05ceada051

View File

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