Permalink
Browse files

Fixed typo 'session' -> 'sess'. Fixed redirect by adding 'Location' h…

…eader :P
  • Loading branch information...
1 parent 7200352 commit cee550b7d920f5f5ed383a36f541df67dd52c8ae @bnoguchi committed Apr 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/oauth.js
View
@@ -90,7 +90,7 @@ everyModule.submodule('oauth')
// sess.auth.fb.access_token = cred.accessToken;
// if (cred.refreshToken) sess.auth.fb.refresh_token = cred.refreshToken;
- var _auth = session.auth || (session.auth = {})
+ var _auth = sess.auth || (sess.auth = {})
, mod = _auth[this.name] || (_auth[this.name] = {});
_auth.loggedIn = true;
for (var k in auth) {
@@ -102,7 +102,7 @@ everyModule.submodule('oauth')
var redirectTo = this.redirectPath();
if (!redirectTo)
throw new Error('You must configure a redirectPath');
- res.writeHead(303, redirectTo);
+ res.writeHead(303, {'Location': redirectTo});
res.end();
})

0 comments on commit cee550b

Please sign in to comment.