diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-01 04:12:56 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-01 04:13:01 +0400 |
commit | 265cda97d7e86292a7ad58ca09b97c9527d78542 (patch) | |
tree | 320b0b57f0be8bffea91ddd6c1f629e4df35cfc6 /lib/http.js | |
parent | 1b24fc667802233b8e1c34c4189ab82ba5dd357a (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-x | lib/http.js | 2 |
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(''); } |