Bumping to 0.7.3 oauth 2 now sending a Content-Length header of 0 to
play well with github/nginx.
This commit is contained in:
@ -38,6 +38,9 @@ exports.OAuth2.prototype._request= function(method, url, headers, access_token,
|
||||
}
|
||||
}
|
||||
realHeaders['Host']= parsedUrl.host;
|
||||
|
||||
//TODO: Content length should be dynamic when dealing with POST methods....
|
||||
realHeaders['Content-Length']= 0;
|
||||
if( access_token ) {
|
||||
if( ! parsedUrl.query ) parsedUrl.query= {};
|
||||
parsedUrl.query["access_token"]= access_token;
|
||||
|
Reference in New Issue
Block a user