Skip to content

Commit

Permalink
readme: ignore favicon in example
Browse files Browse the repository at this point in the history
closes #44
  • Loading branch information
dead-horse committed Aug 30, 2015
1 parent 018b107 commit 4d6d610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ app.keys = ['some secret hurr'];
app.use(session(app));

app.use(function *(){
// ignore favicon
if (this.path === '/favicon.ico') return;

var n = this.session.views || 0;
this.session.views = ++n;
this.body = n + ' views';
Expand Down

0 comments on commit 4d6d610

Please sign in to comment.