fix content length for oauth 1.0
This commit is contained in:
parent
f261b9f4c0
commit
5f383ff1b1
@ -325,7 +325,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
|
|||||||
post_body= querystring.stringify(extra_params);
|
post_body= querystring.stringify(extra_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
headers["Content-length"]= post_body ? post_body.length : 0; //Probably going to fail if not posting ascii
|
headers["Content-length"]= post_body ? Buffer.byteLength(post_body) : 0;
|
||||||
headers["Content-Type"]= post_content_type;
|
headers["Content-Type"]= post_content_type;
|
||||||
|
|
||||||
var path;
|
var path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user