Commits

Robert Brewer  committed 3c128d1

Fix for #501 (staticfilter test fails).

  • Participants
  • Parent commits 3319db6

Comments (0)

Files changed (1)

File cherrypy/test/test_static_filter.py

         # Test modified-since on a reasonably-large file
         self.getPage("/static/dirback.jpg")
         self.assertStatus("200 OK")
-        ims = ("If-Modified-Since", "Wed, 13 Jul 2005 16:19:55 GMT")
+        lastmod = ""
+        for k, v in self.headers:
+            if k == 'Last-Modified':
+                lastmod = v
+        ims = ("If-Modified-Since", lastmod)
         self.getPage("/static/dirback.jpg", headers=[ims])
         self.assertStatus("304 Not Modified")
 ##