Compare View
Commits (2)
Changes
Showing 4 changed files Side-by-side Diff
CHANGELOG.md
... | ... | @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d |
4 | 4 | |
5 | 5 | Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). |
6 | 6 | |
7 | +#### [v0.14.11](https://gitlab.kodesumber.com/komodo/komodo-center-messaging/compare/v0.14.10...v0.14.11) | |
8 | + | |
9 | +- Fix config.do_not_reply_warning_on_empty_message [`4710178`](https://gitlab.kodesumber.com/komodo/komodo-center-messaging/commit/4710178b531f796b6a2ecbdd2b36ab68dfd506eb) | |
10 | + | |
7 | 11 | #### [v0.14.10](https://gitlab.kodesumber.com/komodo/komodo-center-messaging/compare/v0.14.9...v0.14.10) |
8 | 12 | |
13 | +> 4 October 2021 | |
14 | + | |
9 | 15 | - Add config.do_not_reply_warning_on_empty_message [`dd3e936`](https://gitlab.kodesumber.com/komodo/komodo-center-messaging/commit/dd3e93681557ed8a8fb4f1bfcc043682144a2987) |
10 | 16 | |
11 | 17 | #### [v0.14.9](https://gitlab.kodesumber.com/komodo/komodo-center-messaging/compare/v0.14.8...v0.14.9) |
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( |
package-lock.json
1 | 1 | { |
2 | 2 | "name": "komodo-center-messaging", |
3 | - "version": "0.14.10", | |
3 | + "version": "0.14.11", | |
4 | 4 | "lockfileVersion": 2, |
5 | 5 | "requires": true, |
6 | 6 | "packages": { |
7 | 7 | "": { |
8 | 8 | "name": "komodo-center-messaging", |
9 | - "version": "0.14.10", | |
9 | + "version": "0.14.11", | |
10 | 10 | "license": "ISC", |
11 | 11 | "dependencies": { |
12 | 12 | "auto-changelog": "^2.3.0", |