Commit 9556d72
fix: add stream duplex handling to uploadToSignedUrl
The raw-body path in uploadToSignedUrl was missing the stream detection
and duplex: 'half' propagation that uploadOrUpdate already has. Without
this, passing a ReadableStream or Node.js stream to uploadToSignedUrl
fails on Node 20+ fetch which requires duplex: 'half' for stream bodies.
Mirrors the exact pattern from uploadOrUpdate (lines 121-142) into
uploadToSignedUrl for consistency.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 71d1ab9 commit 9556d72
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
290 | 300 | | |
291 | 301 | | |
292 | 302 | | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
297 | 310 | | |
298 | 311 | | |
299 | 312 | | |
| |||
0 commit comments