Commit 56fd247
committed
[fix] Make async client response hook async for httpx AsyncClient
_log_response must be an async function when used as an event hook
with httpx.AsyncClient, otherwise await fails on NoneType.
Integration tests: requests_test.py (2/2) and aio/test_requests.py (2/2) pass.
Made-with: Cursor1 parent 565b971 commit 56fd247
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments