From: Rodney Ewing Date: Wed, 10 Jul 2013 17:37:13 +0000 (-0700) Subject: remove the list from response.vary. not sure why I was getting an error using openid... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=05ceada051dad011bb9b3e1c93fb42b2d9875939;p=mediagoblin.git 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 --- diff --git a/mediagoblin/meddleware/csrf.py b/mediagoblin/meddleware/csrf.py index 44d42d75..661f0ba2 100644 --- 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."""