diff --git a/tests/test_bad_request.py b/tests/test_bad_request.py index 3f237a41..e495e7b8 100644 --- a/tests/test_bad_request.py +++ b/tests/test_bad_request.py @@ -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: