Tests: style.

This commit is contained in:
Andrei Zeliankou
2021-04-05 14:03:05 +01:00
parent 46d8567dd7
commit 6c97a1a069
67 changed files with 689 additions and 614 deletions

View File

@@ -8,15 +8,12 @@ async def application(scope, receive, send):
if not m.get('more_body', False):
break
await send({
'type': 'http.response.start',
'status': 200,
'headers': [
(b'content-length', str(len(body)).encode()),
]
})
await send(
{
'type': 'http.response.start',
'status': 200,
'headers': [(b'content-length', str(len(body)).encode())],
}
)
await send({
'type': 'http.response.body',
'body': body,
})
await send({'type': 'http.response.body', 'body': body})