diff options
author | isaacs <i@izs.me> | 2012-12-21 16:51:43 +0000 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-12-21 16:51:43 +0000 |
commit | fb915ed9573d21c5b62c13b8eaa9642a6dbb4b02 (patch) | |
tree | c1dfdb554ef33ade7bb303ef9edd05a8d524a86e | |
parent | c048c814c79a8706f177573c76bfcba3cda0b633 (diff) | |
download | nodejs-fb915ed9573d21c5b62c13b8eaa9642a6dbb4b02.tar.gz nodejs-fb915ed9573d21c5b62c13b8eaa9642a6dbb4b02.tar.bz2 nodejs-fb915ed9573d21c5b62c13b8eaa9642a6dbb4b02.zip |
lint
-rw-r--r-- | lib/fs.js | 3 | ||||
-rw-r--r-- | lib/http.js | 14 |
2 files changed, 9 insertions, 8 deletions
@@ -1412,7 +1412,8 @@ function ReadStream(path, options) { this.start = options.hasOwnProperty('start') ? options.start : undefined; this.end = options.hasOwnProperty('start') ? options.end : undefined; - this.autoClose = options.hasOwnProperty('autoClose') ? options.autoClose : true; + this.autoClose = options.hasOwnProperty('autoClose') ? + options.autoClose : true; this.pos = undefined; if (this.start !== undefined) { diff --git a/lib/http.js b/lib/http.js index 81c5f67dd..43c61b5e4 100644 --- a/lib/http.js +++ b/lib/http.js @@ -800,13 +800,13 @@ OutgoingMessage.prototype.end = function(data, encoding) { var data_len = data.length; var trailer_len = this._trailer.length; - var len = header_len - + chunk_size_len - + 2 // '\r\n'.length - + data_len - + 5 // '\r\n0\r\n'.length - + trailer_len - + 2; // '\r\n'.length + var len = header_len + + chunk_size_len + + 2 + // '\r\n'.length + data_len + + 5 + // '\r\n0\r\n'.length + trailer_len + + 2; // '\r\n'.length var buf = new Buffer(len); var off = 0; |