mirror of
https://github.com/django/django.git
synced 2025-10-17 22:07:29 +00:00
Fixed #27345 -- Stopped setting the Date header in ConditionalGetMiddleware.
This commit is contained in:
parent
b679a3cdb1
commit
61f9243e51
4 changed files with 8 additions and 12 deletions
|
@ -478,13 +478,6 @@ class ConditionalGetMiddlewareTest(SimpleTestCase):
|
|||
self.req = RequestFactory().get('/')
|
||||
self.resp = self.client.get(self.req.path_info)
|
||||
|
||||
# Tests for the Date header
|
||||
|
||||
def test_date_header_added(self):
|
||||
self.assertNotIn('Date', self.resp)
|
||||
self.resp = ConditionalGetMiddleware().process_response(self.req, self.resp)
|
||||
self.assertIn('Date', self.resp)
|
||||
|
||||
# Tests for the Content-Length header
|
||||
|
||||
def test_content_length_header_added(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue