diff options
author | isaacs <i@izs.me> | 2012-12-26 15:57:49 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-12-26 15:57:49 -0800 |
commit | d76eacd4e618d60714f2dd568d45bd6cd96019b6 (patch) | |
tree | 8769f824bc4c4d468ef000c2e0bc435faaa6cef1 /lib/http.js | |
parent | 0db521d0b0d2cd9dc6bc3b1a52ebab0d409030a2 (diff) | |
download | android-node-v8-d76eacd4e618d60714f2dd568d45bd6cd96019b6.tar.gz android-node-v8-d76eacd4e618d60714f2dd568d45bd6cd96019b6.tar.bz2 android-node-v8-d76eacd4e618d60714f2dd568d45bd6cd96019b6.zip |
http: Handle end only when stream is not dumped
This fixes regression introduced in some cases by 8bf0c15
Diffstat (limited to 'lib/http.js')
-rw-r--r-- | lib/http.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js index 5013f3c0a3..d8a22bb0bb 100644 --- a/lib/http.js +++ b/lib/http.js @@ -160,7 +160,9 @@ function parserOnMessageComplete() { stream._readableState.onread(null, null); } - if (!stream._readableState.endEmitted && !parser.incoming._pendings.length) { + if (stream && + !stream._readableState.endEmitted && + !parser.incoming._pendings.length) { // For emit end event stream._readableState.onread(null, null); } |