diff --git a/README.md b/README.md index 2b4d442..594d02a 100644 --- a/README.md +++ b/README.md @@ -448,7 +448,7 @@ If you would like to handle errors passed to `next()` then attach a listener to 9000, 'localhost' ).listen(8000); - server.proxy.on('middlewareError', function (err, res, req) { + server.proxy.on('middlewareError', function (err, req, res) { // handle the error here and call res.end() });