We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d394608 commit ab2807fCopy full SHA for ab2807f
tests/test_web_response.py
@@ -57,6 +57,15 @@ def test_drop_content_length_header_on_setting_len_to_None(self):
57
resp.content_length = None
58
self.assertNotIn('Content-Length', resp.headers)
59
60
+ def test_set_content_length_to_None_on_non_set(self):
61
+ req = self.make_request('GET', '/')
62
+ resp = StreamResponse(req)
63
+
64
+ resp.content_length = None
65
+ self.assertNotIn('Content-Length', resp.headers)
66
67
68
69
def test_setting_content_type(self):
70
71
req = self.make_request('GET', '/')
0 commit comments