Skip to content

Commit 9f316b2

Browse files
committed
fix: forgot next method in readme example
1 parent d005b47 commit 9f316b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ app.use(couchdbProxy(function(req, res) {
6565
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.
6666

6767
```js
68-
app.use(couchdbProxy(function(req, res) {
68+
app.use(couchdbProxy(function(req, res, next) {
6969
const token = req.get("Authorization");
7070

7171
validateToken(token, function(err, user) {

0 commit comments

Comments
 (0)