@@ -48,6 +48,12 @@ class TestInvalidFrameSequences:
4848 [* base_request_headers , ("name " , "name with trailing space" )],
4949 [* base_request_headers , ("name" , " value with leading space" )],
5050 [* base_request_headers , ("name" , "value with trailing space " )],
51+ [* base_request_headers , ("unpermitted-\r -characters" , "value" )],
52+ [* base_request_headers , ("unpermitted-\n -characters" , "value" )],
53+ [* base_request_headers , ("unpermitted-\x00 -characters" , "value" )],
54+ [* base_request_headers , ("unpermitted-characters" , "some \r value" )],
55+ [* base_request_headers , ("unpermitted-characters" , "some \n value" )],
56+ [* base_request_headers , ("unpermitted-characters" , "some \x00 value" )],
5157 [header for header in base_request_headers
5258 if header [0 ] != ":authority" ],
5359 [(":protocol" , "websocket" ), * base_request_headers ],
@@ -665,7 +671,7 @@ def test_inbound_header_name_length(self, hdr_validation_flags) -> None:
665671
666672 def test_inbound_header_name_length_full_frame_decode (self , frame_factory ) -> None :
667673 f = frame_factory .build_headers_frame ([])
668- f .data = b"\x00 \x00 \x05 \x00 \x00 \x00 \x00 \x04 "
674+ f .data = b"\x00 \x00 \x01 \x04 "
669675 data = f .serialize ()
670676
671677 c = h2 .connection .H2Connection (config = h2 .config .H2Configuration (client_side = False ))
0 commit comments