diff options
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 7fe4e2133b..67d0090d7d 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -599,7 +599,10 @@ function write_(msg, chunk, encoding, callback, fromEnd) { // 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; + if (chunk.length === 0) { + debug('received empty string or buffer and waiting for more input'); + return true; + } if (!fromEnd && msg.connection && !msg[kIsCorked]) { msg.connection.cork(); |