diff options
author | isaacs <i@izs.me> | 2013-05-24 17:16:08 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-27 14:46:52 -0700 |
commit | ba048e72b02e17f0c73e0dcb7d37e76a03327c5a (patch) | |
tree | be9aa3f1f745db25ce2fa12116acf07ac48683cd /lib/_http_outgoing.js | |
parent | 9c7078cea2b719defbb6519d10a14ab15e733822 (diff) | |
parent | f904d614bf62d4bbf9c3adffb485f84d5c77c2d8 (diff) | |
download | android-node-v8-ba048e72b02e17f0c73e0dcb7d37e76a03327c5a.tar.gz android-node-v8-ba048e72b02e17f0c73e0dcb7d37e76a03327c5a.tar.bz2 android-node-v8-ba048e72b02e17f0c73e0dcb7d37e76a03327c5a.zip |
Merge remote-tracking branch 'ry/v0.10'
Conflicts:
AUTHORS
ChangeLog
configure
deps/uv/ChangeLog
deps/uv/src/unix/darwin.c
deps/uv/src/unix/stream.c
deps/uv/src/version.c
deps/v8/src/isolate.cc
deps/v8/src/version.cc
lib/http.js
src/node_version.h
Diffstat (limited to 'lib/_http_outgoing.js')
-rw-r--r-- | lib/_http_outgoing.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 7248e5a135..8455b91603 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -402,7 +402,10 @@ OutgoingMessage.prototype.write = function(chunk, encoding) { throw new TypeError('first argument must be a string or Buffer'); } - if (chunk.length === 0) return false; + + // If we get an empty string or buffer, then just do nothing, and + // signal the user to keep writing. + if (chunk.length === 0) return true; var len, ret; if (this.chunkedEncoding) { |