Commits

Alessandro Molina committed ad87aaf

Fix issue with headers not being a list

Comments (0)

Files changed (1)

tgext/scss/middleware.py

         etag_key = '"%s"' % mtime
         if_none_match = environ.get('HTTP_IF_NONE_MATCH')
         if if_none_match and etag_key == if_none_match:
-            start_response('304 Not Modified', (('ETag', etag_key),))
+            start_response('304 Not Modified', [('ETag', etag_key)])
             return ['']
 
         cached_data = self.cache.get(requested_path)