Browse Source

Apply suggestions from code review

pull/11530/head
Gabriel 1 year ago
committed by GitHub
parent
commit
83375dcdbe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      fastapi/applications.py

3
fastapi/applications.py

@ -4524,8 +4524,7 @@ class FastAPI(Starlette):
@app.middleware("http") @app.middleware("http")
async def add_process_time_header( async def add_process_time_header(
request: Request, request: Request, call_next: Callable[[Request], Awaitable[Response]]
call_next: Callable[[Request], Awaitable[Response]
) -> Response: ) -> Response:
start_time = time.time() start_time = time.time()
response = await call_next(request) response = await call_next(request)

Loading…
Cancel
Save