Update middleware.js

fix request filtering in middleware.js
This commit is contained in:
Oleg Blokhin
2018-04-24 19:42:05 +03:00
committed by Leonid Bugaev
parent a65256d707
commit 2db143aaef
+1 -1
View File
@@ -45,7 +45,7 @@ function init() {
if (proxy.ch[chanID]) {
proxy.ch[chanID].forEach(function(ch){
let r = ch.cb(msg);
if (r) resp = r; // If one of callback decided not to send response back, do not override it in global callbacks
if (!r) resp = r; // If one of callback decided not to send response back, do not override it in global callbacks
})
// Cleanup Individual message channels to avoid memory leaks