From: Christopher Allan Webber Date: Wed, 10 Jul 2013 22:58:30 +0000 (-0500) Subject: Revert "remove the list from response.vary. not sure why I was getting an error using... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=53d78991d7122c93c92cddee81a9e3768c6420e9;p=mediagoblin.git Revert "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" This reverts commit 05ceada051dad011bb9b3e1c93fb42b2d9875939. It turns out the reason for this in the first place was werkzeug backwards compatibility. --- diff --git a/mediagoblin/meddleware/csrf.py b/mediagoblin/meddleware/csrf.py index 661f0ba2..44d42d75 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 = (getattr(response, 'vary', None) or []) + ['Cookie'] + response.vary = list(getattr(response, 'vary', None) or []) + ['Cookie'] def _make_token(self, request): """Generate a new token to use for CSRF protection."""