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:
ciaranj
2010-06-01 21:03:23 +01:00
parent 76cddbdf2b
commit 09d613cd46
3 changed files with 9 additions and 5 deletions

View File

@ -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;