Commit 3b7eab0dcfa729511950c4c5388de675f33cd6de
1 parent
48e051d3f3
Exists in
master
Change some logs
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -15,6 +15,7 @@ const axiosConfig = { |
15 | 15 | |
16 | 16 | const send = async (partner, msg, callerXid) => { |
17 | 17 | const xid = callerXid || uniqid(); |
18 | + | |
18 | 19 | const modemApiServer = config.modem; |
19 | 20 | if (!modemApiServer || !modemApiServer.url) { |
20 | 21 | logger.warn(`${MODULE_NAME} 4111A9BA: Missing modem`, { xid, partner, msg }); |
... | ... | @@ -48,7 +49,9 @@ const send = async (partner, msg, callerXid) => { |
48 | 49 | |
49 | 50 | logger.verbose(`${MODULE_NAME} 8D4F8A3A: Sending message to modem apiserver`, { |
50 | 51 | xid, |
52 | + httpMethod: 'POST', | |
51 | 53 | endpointUrl, |
54 | + requestContentType: axiosConfig.headers['content-type'], | |
52 | 55 | payload, |
53 | 56 | }); |
54 | 57 |