summaryrefslogtreecommitdiffhomepage
path: root/test/python/legacy/asgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/legacy/asgi.py')
-rw-r--r--test/python/legacy/asgi.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/python/legacy/asgi.py b/test/python/legacy/asgi.py
index f065d026..1d45cc4f 100644
--- a/test/python/legacy/asgi.py
+++ b/test/python/legacy/asgi.py
@@ -3,11 +3,12 @@ def application(scope):
return app_http
+
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'),],
+ }
+ )