diff --git a/Readme.md b/Readme.md index ab27ef7..764b4c5 100644 --- a/Readme.md +++ b/Readme.md @@ -4,12 +4,13 @@ A simple oauth API for node.js . This API allows users to authenticate against Tested against both Twitter (http://twitter.com), term.ie (http://term.ie/oauth/example/) and Yahoo! - -Also provides rudimentary OAuth2 support, tested against facebook connect. +Also provides rudimentary OAuth2 support, tested against facebook connect and github. For more complete usage examples please take a look +at express-auth (http://github.com/ciaranj/express-auth) Change History ============== -0.7.2 - Fixes some broken unit tests! -0.7.0 - Introduces support for HTTPS end points and callback URLS for OAuth 1.0A and Oauth 2 (Please be aware that this was a breaking change to the constructor arguments order) + 0.7.3 - OAuth 2 now sends a Content-Length Http header to keep nginx happy :) + 0.7.2 - Fixes some broken unit tests! + 0.7.0 - Introduces support for HTTPS end points and callback URLS for OAuth 1.0A and Oauth 2 (Please be aware that this was a breaking change to the constructor arguments order) diff --git a/lib/oauth2.js b/lib/oauth2.js index 62baab2..a953228 100644 --- a/lib/oauth2.js +++ b/lib/oauth2.js @@ -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; diff --git a/seed.yml b/seed.yml index bb6b257..bbcecfa 100644 --- a/seed.yml +++ b/seed.yml @@ -1,4 +1,4 @@ --- name: oauth description: An implementation of an OAuth client. - version: 0.7.2 + version: 0.7.3