fix elapsed to always use floating point notation
This commit is contained in:
parent
2c30a67e83
commit
a39a0e6442
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class ResponseTimeMiddleware:
|
|||
if message["type"] == "http.response.start":
|
||||
headers = MutableHeaders(scope=message)
|
||||
elapsed = perf_counter() - start
|
||||
headers.append(self.header_name, str(elapsed))
|
||||
headers.append(self.header_name, f"{elapsed:.20f}")
|
||||
await send(message)
|
||||
|
||||
await self.app(scope, receive, send_wrapper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue