summaryrefslogtreecommitdiff
path: root/test/test_sendfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_sendfile.py')
-rwxr-xr-xtest/test_sendfile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_sendfile.py b/test/test_sendfile.py
index d6693c2..ef8eef5 100755
--- a/test/test_sendfile.py
+++ b/test/test_sendfile.py
@@ -95,6 +95,11 @@ class TestSendFile(unittest.TestCase):
request.environ['HTTP_IF_MODIFIED_SINCE'] = bottle.http_date(100)
self.assertEqual(open(__file__,'rb').read(), static_file(basename, root=root).body.read())
+ def test_ims_empty(self):
+ """ SendFile: Empty If-Modified-Since"""
+ request.environ['HTTP_IF_MODIFIED_SINCE'] = ''
+ self.assertEqual(open(__file__, 'rb').read(), static_file(basename, root=root).body.read())
+
def test_etag(self):
""" SendFile: If-Modified-Since"""
res = static_file(basename, root=root)