1. Alessandro Molina
  2. tgext.scss

Commits

Alessandro Molina  committed ad87aaf

Fix issue with headers not being a list

  • Participants
  • Parent commits 7ef4037
  • Branches default

Comments (0)

Files changed (1)

File tgext/scss/middleware.py

View file
  • Ignore whitespace
         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)