Skip to content

Commit

Permalink
fixed https issue
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Mar 6, 2012
1 parent de37158 commit 063d123
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/index.js
Expand Up @@ -142,11 +142,12 @@ function routes(app) {
} else {
res.writeHead(302, {'Location': links[id].href });
}
res.end('');
res.end();
});

app.get('/link', function (req, res) {
res.writeHead(302, {'Location': links[links.length-1].href });
res.end();
});

app.get('/link/save', function (req, res) {
Expand Down

0 comments on commit 063d123

Please sign in to comment.