Commit dd580e3
committed
feat(typescript): handle binary responses with ArrayBuffer
Previously, binary responses were processed with response.text(), which
corrupts bytes > 127 due to UTF-8 encoding issues.
Now the SDK detects binary content types and uses response.arrayBuffer()
to preserve byte integrity for:
- application/octet-stream
- image/*
- audio/*
- video/*1 parent 169286f commit dd580e3
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
| |||
0 commit comments