Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rgajrawala authored Jul 10, 2024
1 parent d8e0b23 commit 808ef2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tornado/test/web_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,13 @@ def test_static_304_etag_modified_bug(self):
)
self.assertEqual(response2.code, 200)

def test_static_304_if_modified_since_invalid(self):
response = self.get_and_head(
"/static/robots.txt",
headers={"If-Modified-Since": "!nv@l!d"},
)
self.assertEqual(response.code, 200)

def test_static_if_modified_since_pre_epoch(self):
# On windows, the functions that work with time_t do not accept
# negative values, and at least one client (processing.js) seems
Expand Down

0 comments on commit 808ef2d

Please sign in to comment.