oauth1: Don't try to render results after sending a redirect.

This now causes an error, but was always wrong.
This commit is contained in:
David Glasser
2013-05-31 13:02:20 -07:00
parent 6d4ebcb885
commit 637686986e

View File

@@ -26,7 +26,6 @@ Oauth1._handleRequest = function (service, query, res) {
var redirectUrl = urls.authenticate + '?oauth_token=' + oauthBinding.requestToken;
res.writeHead(302, {'Location': redirectUrl});
res.end();
} else {
// step 2, redirected from provider login - complete the login
// process: if the user authorized permissions, get an access
@@ -56,9 +55,9 @@ Oauth1._handleRequest = function (service, query, res) {
options: oauthResult.options
};
}
}
// Either close the window, redirect, or render nothing
// if all else fails
Oauth._renderOauthResults(res, query);
// Either close the window, redirect, or render nothing
// if all else fails
Oauth._renderOauthResults(res, query);
}
};