Skip to content

Commit f301791

Browse files
Update test_wsgiref.py
I'm not adding c0 at add_header as this is already caught by the other PR of seth and if there are other "versions" of inputting headers it should be the same as in seth's PR (and it's only for debug mode)
1 parent 8c9a691 commit f301791

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_wsgiref.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ def testRaisesControlCharacters(self):
854854
with self.subTest(c0):
855855
base = BaseHandler()
856856
headers = Headers()
857+
headers["key"] = f"val{c0}"
858+
headers.add_header("key", "val")
857859
# HTAB (\x09) is allowed in values, but not in names.
858860
if c0 == "\t":
859861
base["key"] = f"val{c0}"

0 commit comments

Comments
 (0)