Browse Source

lint

v0.9.4-release
isaacs 12 years ago
parent
commit
fb915ed957
  1. 3
      lib/fs.js
  2. 14
      lib/http.js

3
lib/fs.js

@ -1412,7 +1412,8 @@ function ReadStream(path, options) {
this.start = options.hasOwnProperty('start') ? options.start : undefined; this.start = options.hasOwnProperty('start') ? options.start : undefined;
this.end = options.hasOwnProperty('start') ? options.end : 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; this.pos = undefined;
if (this.start !== undefined) { if (this.start !== undefined) {

14
lib/http.js

@ -800,13 +800,13 @@ OutgoingMessage.prototype.end = function(data, encoding) {
var data_len = data.length; var data_len = data.length;
var trailer_len = this._trailer.length; var trailer_len = this._trailer.length;
var len = header_len var len = header_len +
+ chunk_size_len chunk_size_len +
+ 2 // '\r\n'.length 2 + // '\r\n'.length
+ data_len data_len +
+ 5 // '\r\n0\r\n'.length 5 + // '\r\n0\r\n'.length
+ trailer_len trailer_len +
+ 2; // '\r\n'.length 2; // '\r\n'.length
var buf = new Buffer(len); var buf = new Buffer(len);
var off = 0; var off = 0;

Loading…
Cancel
Save