mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: correct comment error in stream.md
Fix comment about remove listener (not setting) PR-URL: https://github.com/nodejs/node/pull/11804 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
This commit is contained in:
1 parent
e6f113d3d5
commit
ae52b63df2
1 file changed
+1
-1
+1
-1
@@ -1016,7 +1016,7 @@ function parseHeader(stream, callback) {
|
||||
const remaining = split.join('\n\n');
|
||||
const buf = Buffer.from(remaining, 'utf8');
|
||||
stream.removeListener('error', callback);
|
||||
// set the readable listener before unshifting
|
||||
// remove the readable listener before unshifting
|
||||
stream.removeListener('readable', onReadable);
|
||||
if (buf.length)
|
||||
stream.unshift(buf);
|
||||
|
||||
Reference in new issue
Block a user