projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3c4cbd
)
remove the list from response.vary. not sure why I was getting an error using openid...
author
Rodney Ewing
<ewing.rj@gmail.com>
Wed, 10 Jul 2013 17:37:13 +0000
(10:37 -0700)
committer
Rodney Ewing
<ewing.rj@gmail.com>
Wed, 10 Jul 2013 17:37:13 +0000
(10:37 -0700)
mediagoblin/meddleware/csrf.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/meddleware/csrf.py
b/mediagoblin/meddleware/csrf.py
index 44d42d75740f8c5fe42c0d3b2b08d22ba2bf4c77..661f0ba23cc8f317a7b7c491644109ddc8761c31 100644
(file)
--- a/
mediagoblin/meddleware/csrf.py
+++ b/
mediagoblin/meddleware/csrf.py
@@
-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."""