Skip to content

Commit

Permalink
fixes test_middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Sep 14, 2022
1 parent fa0f4f7 commit c5689a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@jp.app.middleware("http")
async def add_process_time_header(request: Request, call_next):
start_time = time.time()
func=request.app.get_func_for_request(request)
response = await call_next(request)
process_time = time.time() - start_time
response.headers["X-Process-Time"] = str(process_time)
Expand Down

0 comments on commit c5689a3

Please sign in to comment.