Skip to content

Commit

Permalink
Update tests/test_http_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Oct 6, 2023
1 parent 094ae15 commit 284094e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_invalid_linebreak(loop: Any, protocol: Any, request: Any) -> None:

def test_cve_2023_37276(parser) -> None:
text = (b"POST / HTTP/1.1\r\nHost: localhost:8080\r\n"
b"X-Abc: \rxTransfer-Encoding: chunked\r\n\r\n"
b"X-Abc: \rxTransfer-Encoding: chunked\r\n\r\n")
with pytest.raises(http_exceptions.BadHttpMessage):
parser.feed_data(text)

Expand Down

0 comments on commit 284094e

Please sign in to comment.