Revert "remove the list from response.vary. not sure why I was getting an error using...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Jul 2013 22:58:30 +0000 (17:58 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Jul 2013 22:58:30 +0000 (17:58 -0500)
This reverts commit 05ceada051dad011bb9b3e1c93fb42b2d9875939.

It turns out the reason for this in the first place was werkzeug
backwards compatibility.

mediagoblin/meddleware/csrf.py

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