Skip to content

Commit

Permalink
Issue #47 - fix for wrong Content-Length setting in doRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
nedzynski committed Aug 16, 2011
1 parent b26a86c commit e3e892d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.io/request.js
Expand Up @@ -266,7 +266,7 @@ Job.prototype.doRequest = function (method, resource, body, headers, callback, p
if (typeof body === 'object') {
body = query.stringify(body);
}
headers['Content-Length'] = body.length;
headers['Content-Length'] = Buffer.byteLength(body);
}

//Determine the port and add it to the host header
Expand Down

0 comments on commit e3e892d

Please sign in to comment.