Skip to content

Commit

Permalink
[ #Issue 75 ] Fixing Live Protocol 302 Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pnegri committed Oct 26, 2011
1 parent fd4b2bb commit 6404f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports.OAuth2.prototype._request= function(method, url, headers, post_body, acc
function passBackControl( response, result ) {
if(!callbackCalled) {
callbackCalled=true;
if( response.statusCode != 200 ) {
if( response.statusCode != 200 && (response.statusCode != 301) && (response.statusCode != 302) ) {
callback({ statusCode: response.statusCode, data: result });
} else {
callback(null, result, response);
Expand Down

0 comments on commit 6404f6e

Please sign in to comment.