Skip to content

Commit

Permalink
Removed Content-Length field from client
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 21, 2011
1 parent 7798c5c commit 42d0ab9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/superagent.js
Expand Up @@ -586,11 +586,6 @@ var superagent = function(exports){
// serialize stuff
var serialize = exports.serialize[this.header['content-type']];
if (serialize) data = serialize(data);

// content-length
if (null != data && !this.header['content-length']) {
this.set('Content-Length', data.length);
}
}

// set header fields
Expand Down

0 comments on commit 42d0ab9

Please sign in to comment.