Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Miniflare 2] Fix cloning of Responses constructed with byte streams #543

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Mar 22, 2023

This applies the same fix for Request bodies from #510 to Responses. Notably, byte streams are returned from lots of Workers runtime APIs (e.g. KV, R2) to support BYOB reads. It's likely these are then used in Responses and cloned for caching.

Closes #527

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2023

⚠️ No Changeset found

Latest commit: 221d07d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This applies the same fix for `Request` bodies from #510 to
`Response`s. Notably, byte streams are returned from lots of Workers
runtime APIs (e.g. KV, R2) to support BYOB reads. It's likely these
are then used in `Response`s and cloned for caching.
@mrbbot mrbbot force-pushed the bcoll/fix-byte-stream-response-clone branch from 0a2785d to 221d07d Compare March 22, 2023 17:14
@mrbbot mrbbot requested a review from penalosa March 22, 2023 17:40
@mrbbot mrbbot merged commit 015e1d6 into master Mar 23, 2023
@mrbbot mrbbot deleted the bcoll/fix-byte-stream-response-clone branch March 23, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Found invalid object in transferList
2 participants