mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Update middleware.js
fix request filtering in middleware.js
This commit is contained in:
committed by
Leonid Bugaev
parent
a65256d707
commit
2db143aaef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user