Tests: style.
This commit is contained in:
@@ -7,11 +7,12 @@ def application(scope, receive=None, send=None):
|
||||
else:
|
||||
return app_http(receive, send)
|
||||
|
||||
|
||||
async def app_http(receive, send):
|
||||
await send({
|
||||
'type': 'http.response.start',
|
||||
'status': 200,
|
||||
'headers': [
|
||||
(b'content-length', b'0'),
|
||||
]
|
||||
})
|
||||
await send(
|
||||
{
|
||||
'type': 'http.response.start',
|
||||
'status': 200,
|
||||
'headers': [(b'content-length', b'0'),],
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user