Skip to content
This repository
Browse code

[ #Issue 75 ] Fixing Live Protocol 302 Resources

  • Loading branch information...
commit 6404f6e023768707a4f0a6922bec3e669d125416 1 parent fd4b2bb
Patrick Negri authored October 26, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/oauth2.js
2  lib/oauth2.js
@@ -64,7 +64,7 @@ exports.OAuth2.prototype._request= function(method, url, headers, post_body, acc
64 64
   function passBackControl( response, result ) {
65 65
     if(!callbackCalled) {
66 66
       callbackCalled=true;
67  
-      if( response.statusCode != 200 ) {
  67
+      if( response.statusCode != 200 && (response.statusCode != 301) && (response.statusCode != 302) ) {
68 68
         callback({ statusCode: response.statusCode, data: result });
69 69
       } else {
70 70
         callback(null, result, response);

0 notes on commit 6404f6e

Please sign in to comment.
Something went wrong with that request. Please try again.