Skip to content


Subversion checkout URL

You can clone with
Download ZIP


[ #Issue 75 ] Fixing Live Protocol 302 Resources #76

merged 1 commit into from

2 participants


Fixing a issue where Windows Live protocol return some resources as HTTP Header Location data.

For example, if i want to get the profile picture for MSN, the URL of resource is the Location of a HTTP header. So, if i dont want the data (the data of image), and URL for download or for display the image, we must have access to that info in response.

Fixed and requesting a Pull.

@ciaranj ciaranj merged commit 2007134 into ciaranj:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 26, 2011
  1. @pnegri
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/oauth2.js
2  lib/oauth2.js
@@ -64,7 +64,7 @@ exports.OAuth2.prototype._request= function(method, url, headers, post_body, acc
function passBackControl( response, result ) {
if(!callbackCalled) {
- 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);
Something went wrong with that request. Please try again.