Skip to content

Commit c791561

Browse files
committed
Make LoggingResponse a Response
1 parent 0e07da1 commit c791561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metricrule/agent/asgi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ASGIMetricsMiddleware(BaseHTTPMiddleware):
4242
"""ASGI middleware to log metrics for requests and responses.
4343
"""
4444

45-
class LoggingResponse():
45+
class LoggingResponse(Response):
4646
"""A response subclass that logs before forwarding the response.
4747
4848
If the response is streamed, it will be cached until the payload

0 commit comments

Comments
 (0)