Permalink
Browse files

[ #Issue 75 ] Fixing Live Protocol 302 Resources

  • Loading branch information...
1 parent fd4b2bb commit 6404f6e023768707a4f0a6922bec3e669d125416 @pnegri committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/oauth2.js
View
@@ -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);

0 comments on commit 6404f6e

Please sign in to comment.