From 808ef2dfd781a48e62c39b80824dff28d5fc9db6 Mon Sep 17 00:00:00 2001 From: Ronak Gajrawala Date: Wed, 10 Jul 2024 09:47:06 -0700 Subject: [PATCH] add test --- tornado/test/web_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py index 32a12bad99..42c66171a2 100644 --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -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