Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 6, 2023
1 parent 284094e commit 5a03b0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ 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")
text = (
b"POST / HTTP/1.1\r\nHost: localhost:8080\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 5a03b0f

Please sign in to comment.