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

Fix memory leak from cloned responses #661

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

sholladay
Copy link
Collaborator

Fixes #648

This removes an unnecessary response clone that was used in body method shortcuts, such as ky().json(), which caused the original response to be fully buffered and never consumed.

Fixes sindresorhus#648

This removes an unnecessary response clone that was used in body method shortcuts, such as `ky().json()`, which caused the original response to be fully buffered and never consumed.
@sholladay sholladay merged commit 30e7afd into sindresorhus:main Dec 9, 2024
1 check passed
@sholladay sholladay deleted the fix-memory-leak branch December 9, 2024 23:52
@gregory
Copy link

gregory commented Dec 10, 2024

Thank you @sholladay 🙏 Do you know when this is going out?

@sholladay
Copy link
Collaborator Author

@gregory released just now in 1.7.3

@gregory
Copy link

gregory commented Dec 11, 2024

@gregory released just now in 1.7.3

Thank you! 🙏

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.

A ReadableStream branch was created but never consumed
2 participants