mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #33571 -- Fixed static serving views crash when If-Modified-Since is empty.
Regression in d6aff369ad.
This commit is contained in:
@@ -191,3 +191,6 @@ class StaticUtilsTests(unittest.TestCase):
|
||||
mtime = 1343416141.107817
|
||||
header = http_date(mtime)
|
||||
self.assertFalse(was_modified_since(header, mtime))
|
||||
|
||||
def test_was_modified_since_empty_string(self):
|
||||
self.assertTrue(was_modified_since(header="", mtime=1))
|
||||
|
||||
Reference in New Issue
Block a user