http: disable OutgoingMessage pipe method
OutgoingMessage should be a write-only stream, and it shouldn't
be piped. This commit disables the pipe
method by throwing
an exception (if this method is called).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
http
Additional data
As was suggested here: https://github.com/nodejs/node/pull/14024, I disabled the use of the method pipe
in OutgoingMessage
. OutgoingMessage
should be write-only, and shouldn't be piped.