mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Put the arguments the right way around in the README.
This commit is contained in:
parent
7c8ecc8ea8
commit
145798062e
@ -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()
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user