remove the list from response.vary. not sure why I was getting an error using openid...
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 10 Jul 2013 17:37:13 +0000 (10:37 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Wed, 10 Jul 2013 17:37:13 +0000 (10:37 -0700)
mediagoblin/meddleware/csrf.py

index 44d42d75740f8c5fe42c0d3b2b08d22ba2bf4c77..661f0ba23cc8f317a7b7c491644109ddc8761c31 100644 (file)
@@ -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."""