Skip to content

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 25, 2024

Fixes #1125

Super old bug #1125 is the result of some premature encoding of already buffered content in node core.

https://github.com/nodejs/node/blob/4e68b541fd7ccd9fe1328d5b4dc93a3689aa505d/lib/internal/streams/readable.js#L585

This PR overwrites the setEncoding function, with a custom solution which is not encoding the buffered content.

@Uzlopak Uzlopak requested review from mcollina and ronag August 25, 2024 02:12
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Uzlopak Uzlopak merged commit 9d57401 into nodejs:main Aug 25, 2024
@Uzlopak Uzlopak deleted the fix-1125 branch August 25, 2024 11:03
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
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.

client.request throws Error with setEncoding

3 participants