You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Content-Length and FixedLengthStream to R2 get response (#712)
* Add Content-Length and FixedLengthStream to R2 get response
Before this, we would see that the following code wouldn't work:
```
const res = await env.BUCKET.get(name);
await env.BUCKET.put(name, res!.body);
```
As it would throw:
TypeError: Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)
* Test fixed length R2 get responses
---------
Co-authored-by: bcoll <[email protected]>
0 commit comments