Commit 9668e2f
Close response body on error in ParseJSON
Matches the old client behaviour: when the status is >= 400 the body
is fully read for the error message and then closed, allowing the
underlying connection to be reused.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0483260 commit 9668e2f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments