Issue 653: This time for sure!

This commit is contained in:
Nathan Yergler 2011-11-13 12:07:09 -08:00
parent ad3f1233df
commit d9ed3aeb40

View File

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