Change of test: don't require early bad request error but only after CRLF-CRLF.

This commit is contained in:
L. Kärkkäinen 2020-02-24 17:27:04 +02:00
parent f6a0b4a497
commit 3d05e1ec07

View File

@ -8,7 +8,7 @@ def test_bad_request_response(app):
async def _request(sanic, loop):
connect = asyncio.open_connection("127.0.0.1", 42101)
reader, writer = await connect
writer.write(b"not http")
writer.write(b"not http\r\n\r\n")
while True:
line = await reader.readline()
if not line: