Commit 4710178b531f796b6a2ecbdd2b36ab68dfd506eb
1 parent
268afb2468
Exists in
master
Fix config.do_not_reply_warning_on_empty_message
Showing 1 changed file with 5 additions and 2 deletions Side-by-side Diff
lib/http-listener.js
... | ... | @@ -71,10 +71,13 @@ function mainHandler(req, res) { |
71 | 71 | xid, |
72 | 72 | }); |
73 | 73 | |
74 | - if (!config.do_not_reply_warning_on_empty_message) { | |
74 | + if (config.do_not_reply_warning_on_empty_message) { | |
75 | + res.end(''); | |
76 | + } else { | |
75 | 77 | res.end(`ERROR. Undefined parameter: msg. XID: ${xid}`); |
76 | - return; | |
77 | 78 | } |
79 | + | |
80 | + return; | |
78 | 81 | } |
79 | 82 | |
80 | 83 | logger.verbose( |