projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad3f123
)
Issue 653: This time for sure!
author
Nathan Yergler
<nathan@yergler.net>
Sun, 13 Nov 2011 20:07:09 +0000
(12:07 -0800)
committer
Nathan Yergler
<nathan@yergler.net>
Sun, 13 Nov 2011 20:07:09 +0000
(12:07 -0800)
mediagoblin/middleware/csrf.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/middleware/csrf.py
b/mediagoblin/middleware/csrf.py
index d0601af89e92ac26cea297aead7b6bcc7685734a..8275c18ee88d3c8055d5e44ec3591e5e10ef4680 100644
(file)
--- a/
mediagoblin/middleware/csrf.py
+++ b/
mediagoblin/middleware/csrf.py
@@
-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."""