Skip to content

Commit

Permalink
Fix for Connect and Express examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Nov 29, 2017
1 parent 1e7db69 commit 8d0c55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/connect.middleware.js
Expand Up @@ -9,7 +9,7 @@ var spiderable = new Spiderable({
auth: 'APIUser:APIPass'
});

app.use(spiderable.handler).use(function (req, res) {
app.use(spiderable.handler.bind(spiderable)).use(function (req, res) {
res.end('Hello from Connect!\n');
});

Expand Down
2 changes: 1 addition & 1 deletion examples/express.middleware.js
Expand Up @@ -8,7 +8,7 @@ var spiderable = new Spiderable({
auth: 'APIUser:APIPass'
});

app.use(spiderable.handler).get('/', function (req, res) {
app.use(spiderable.handler.bind(spiderable)).get('/', function (req, res) {
res.send('Hello World');
});

Expand Down

0 comments on commit 8d0c55d

Please sign in to comment.