Skip to content

Commit 7c8ecc8

Browse files
philjacksonindexzero
authored andcommitted
Put the arguments the right way around in emitter.
1 parent 25bb3bf commit 7c8ecc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/node-http-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ exports.stack = function stack (middlewares, proxy) {
294294
handle = function (req, res) {
295295
var next = function (err) {
296296
if (err) {
297-
if (! proxy.emit('middlewareError', err, res, req)) {
297+
if (! proxy.emit('middlewareError', err, req, res)) {
298298
console.error('Error in middleware(s): %s', err.stack);
299299
}
300300

0 commit comments

Comments
 (0)