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 emitter.
This commit is contained in:
parent
25bb3bfa70
commit
7c8ecc8ea8
@ -294,7 +294,7 @@ exports.stack = function stack (middlewares, proxy) {
|
|||||||
handle = function (req, res) {
|
handle = function (req, res) {
|
||||||
var next = function (err) {
|
var next = function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (! proxy.emit('middlewareError', err, res, req)) {
|
if (! proxy.emit('middlewareError', err, req, res)) {
|
||||||
console.error('Error in middleware(s): %s', err.stack);
|
console.error('Error in middleware(s): %s', err.stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user