Use backticks around response_started in comment
This commit is contained in:
parent
d01c83cd84
commit
798809cc6e
@ -335,7 +335,7 @@ async def test_invalid_header_name(http_protocol_cls: type[HTTPProtocol], name:
|
||||
protocol = get_connected_protocol(app, http_protocol_cls)
|
||||
protocol.data_received(SIMPLE_GET_REQUEST)
|
||||
await protocol.loop.run_one()
|
||||
# No 500 is sent because response_started is set before header validation,
|
||||
# No 500 is sent because `response_started` is set before header validation,
|
||||
# so the error handler just closes the connection.
|
||||
assert b"HTTP/1.1 500 Internal Server Error" not in protocol.transport.buffer
|
||||
assert name.encode() not in protocol.transport.buffer
|
||||
|
||||
Loading…
Reference in New Issue
Block a user