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 encoding for stream _write #2643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GazHank
Copy link
Contributor

@GazHank GazHank commented Jun 27, 2023

Fix per #2566

This matches the definition of _write definition for Duplex streams

Signed-off-by: Gareth Hancock 64541249+GazHank@users.noreply.github.com

Signed-off-by: Gareth Hancock <64541249+GazHank@users.noreply.github.com>
@GazHank GazHank added the bug label Jun 27, 2023
@GazHank GazHank marked this pull request as ready for review June 27, 2023 14:35
@GazHank
Copy link
Contributor Author

GazHank commented Jul 22, 2023

Hmm, do we need to look at changing the _writev function too?

this._write(Buffer.concat(dataV), undefined, callback)

@reconbot
Copy link
Member

I'm suspect that this is the correct type as nodejs used to pass undefined there all the time. Curious how that's been upgraded for older libraries and packages. Whatever type changes make us look like a stream are fine by me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants