diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-12-05 16:03:30 -0500 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-12-06 21:55:25 -0500 |
commit | de2fd63612fcb2a4c8e24d7b2cf6e6f09b74ea17 (patch) | |
tree | d05b4b1d2045ad25a4155c8e603f06b1e8d9f932 /test/parallel/test-http-1.0.js | |
parent | afd512253daf5a2fffce4b17e8241c3607831b68 (diff) | |
download | node-new-de2fd63612fcb2a4c8e24d7b2cf6e6f09b74ea17.tar.gz |
stream_wrap: error if stream has StringDecoder
If `.setEncoding` was called on input stream - all emitted `data` will
be `String`s instances, not `Buffer`s. This is unacceptable for
`StreamWrap`, and should not lead to the crash.
Fix: https://github.com/nodejs/node/issues/3970
PR-URL: https://github.com/nodejs/node/pull/4031
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-1.0.js')
0 files changed, 0 insertions, 0 deletions