Change of test: don't require early bad request error but only after CRLF-CRLF.
This commit is contained in:
parent
f6a0b4a497
commit
3d05e1ec07
|
@ -8,7 +8,7 @@ def test_bad_request_response(app):
|
||||||
async def _request(sanic, loop):
|
async def _request(sanic, loop):
|
||||||
connect = asyncio.open_connection("127.0.0.1", 42101)
|
connect = asyncio.open_connection("127.0.0.1", 42101)
|
||||||
reader, writer = await connect
|
reader, writer = await connect
|
||||||
writer.write(b"not http")
|
writer.write(b"not http\r\n\r\n")
|
||||||
while True:
|
while True:
|
||||||
line = await reader.readline()
|
line = await reader.readline()
|
||||||
if not line:
|
if not line:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user