Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-01 04:12:56 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-10-01 04:13:01 +0400
commit265cda97d7e86292a7ad58ca09b97c9527d78542 (patch)
tree320b0b57f0be8bffea91ddd6c1f629e4df35cfc6 /lib/http.js
parent1b24fc667802233b8e1c34c4189ab82ba5dd357a (diff)
Fix zero length buffer bug for http res.end()
Reported by Kadir Pekel <kadirpekel@gmail.com>
Diffstat (limited to 'lib/http.js')
-rwxr-xr-xlib/http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js
index d7ccc260f14..310c533ea14 100755
--- a/lib/http.js
+++ b/lib/http.js
@@ -560,7 +560,7 @@ OutgoingMessage.prototype.end = function (data, encoding) {
if (!hot) {
if (this.chunkedEncoding) {
ret = this._send('0\r\n' + this._trailer + '\r\n'); // Last chunk.
- } else if (!data) {
+ } else {
// Force a flush, HACK.
ret = this._send('');
}