Issue 653: This time for sure!
This commit is contained in:
parent
ad3f1233df
commit
d9ed3aeb40
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user