Commit 735e1ac
committed
fix(multipart): ensure BodyPartReader.read() returns bytes not bytearray
The read() method accumulated data in a bytearray but returned it
directly, violating the documented return type annotation (bytes).
This caused TypeError when passing the result to json.dumps or
other APIs that expect bytes rather than bytearray.1 parent b0601d6 commit 735e1ac
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
| 325 | + | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
0 commit comments