Skip to content

Commit 303ab5b

Browse files
committed
gh-135056: Augment header test case to check colons and spaces
1 parent 7856d27 commit 303ab5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_httpservers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ def test_unknown_flag(self, _):
15521552
@mock.patch.object(HTTPServer, 'serve_forever')
15531553
def test_extra_response_headers_arg(self, _, mock_make_server):
15541554
server._main(
1555-
['-H', 'Set-Cookie', 'k=v', '-H', 'Set-Cookie', 'k2=v2', '8080']
1555+
['-H', 'Set-Cookie', 'k=v', '-H', 'Set-Cookie', 'k2=v2:v3 v4', '8080']
15561556
)
15571557
# Get an instance of the server / RequestHandler by using
15581558
# the spied call args, then calling _make_server with them.
@@ -1573,7 +1573,7 @@ def test_extra_response_headers_arg(self, _, mock_make_server):
15731573
mock.ANY, mock.ANY, mock.ANY,
15741574
directory=mock.ANY,
15751575
extra_response_headers=[
1576-
['Set-Cookie', 'k=v'], ['Set-Cookie', 'k2=v2']
1576+
['Set-Cookie', 'k=v'], ['Set-Cookie', 'k2=v2:v3 v4']
15771577
]
15781578
)
15791579

0 commit comments

Comments
 (0)