Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

less checks

  • Loading branch information...
commit 3501196327ed1b045aba34788d083dfbdb245d79 1 parent 4512cf5
@simonmcmanus simonmcmanus authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  server.js
View
3  server.js
@@ -208,7 +208,7 @@ self.fetch = function(url, oauthToken, oauthTokenSecret, callback) {
// Used to connect using oauth.
self.oauthConnect = function(req, res, next) {
var referer = req.header('Referer');
- if(referer && req.session){
+ if(referer){
req.session.originalUrl = referer; // stored so we can return them to here later.
}
self.consumer.getOAuthRequestToken(function(error, oauthToken, oauthTokenSecret, results){
@@ -216,7 +216,6 @@ self.fetch = function(url, oauthToken, oauthTokenSecret, callback) {
res.send("Error getting OAuth request token : ", 500);
console.log('oAuth error: '+ error);
} else {
- console.log(oauthToken);
req.session.oauthRequestToken = oauthToken; // we will need these values in the oauthCallback so store them on the session.
req.session.oauthRequestTokenSecret = oauthTokenSecret;
Please sign in to comment.
Something went wrong with that request. Please try again.