Skip to content

Commit

Permalink
Merge pull request #3 from tyler-johnson/dev
Browse files Browse the repository at this point in the history
fix: forgot next method in readme example
  • Loading branch information
tyler-johnson authored Aug 3, 2016
2 parents 51b1e30 + 9f316b2 commit 8b98412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ app.use(couchdbProxy(function(req, res) {
Of course, you can also go with the more traditional `next` style callback that Express uses. If you do use the `next()` callback, you absolutely must call it, or the request will never complete.

```js
app.use(couchdbProxy(function(req, res) {
app.use(couchdbProxy(function(req, res, next) {
const token = req.get("Authorization");

validateToken(token, function(err, user) {
Expand Down

0 comments on commit 8b98412

Please sign in to comment.