Commit 0071d4e
Gautam Kumar
fix: normalize empty reason phrase to None in asyncio transport
The asyncio HTTP client was reporting an empty reason phrase as an
empty string instead of None, inconsistent with the requests and httpx
transports which normalize empty reason phrases to None.
Changed the one-liner to coerce empty string to None so that
Response.reason is consistent across all adapters.1 parent 86b742d commit 0071d4e
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments