Fix 204 bug
This commit is contained in:
parent
a860af0ff9
commit
dfe9e822a3
|
@ -102,7 +102,7 @@ class RouterLoggingMiddleware(BaseHTTPMiddleware):
|
||||||
"time_taken": f"{execution_time:0.4f}s",
|
"time_taken": f"{execution_time:0.4f}s",
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.api_debug:
|
if self.api_debug and response.status_code != 204:
|
||||||
resp_body = [
|
resp_body = [
|
||||||
section async for section in response.__dict__["body_iterator"]
|
section async for section in response.__dict__["body_iterator"]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue