root: fix asgi formatting
This commit is contained in:
parent
6573d2e8f6
commit
2de4023d43
|
@ -87,7 +87,9 @@ class ASGILogger:
|
|||
if b"Content-Length" in headers:
|
||||
self.content_length += int(headers.get(b"Content-Length", b"0"))
|
||||
|
||||
if message["type"] == "http.response.body" and not message.get("more_body", None):
|
||||
if message["type"] == "http.response.body" and not message.get(
|
||||
"more_body", None
|
||||
):
|
||||
runtime = int((time() - self.start) * 10 ** 6)
|
||||
self.log(runtime)
|
||||
await send(message)
|
||||
|
|
Reference in New Issue