Commit fea1167446661308b44b795e0f28b60dd3be5aae
1 parent
8124d89a46
Exists in
master
headless xml payload
Showing 2 changed files with 3 additions and 4 deletions Side-by-side Diff
anti-same-day-dupe.js
... | ... | @@ -119,6 +119,7 @@ function check(task, cbNoDupe, cbDupe, cbDupeWithSameReqId) { |
119 | 119 | if (Number(config.globals.no_same_day_dupe_check)) { |
120 | 120 | logger.verbose('Skipping same day dupe check because of config.globals.no_same_day_dupe_check'); |
121 | 121 | cbNoDupe(task); |
122 | + return; | |
122 | 123 | } |
123 | 124 | |
124 | 125 | get(task.remoteProduct, task.destination, function(err, archivedTask) { |
partner-hpay.js
... | ... | @@ -12,7 +12,7 @@ var aaa; |
12 | 12 | var _callbackReport; |
13 | 13 | var logger; |
14 | 14 | |
15 | -var xmlBuilder = new xml2js.Builder({rootName: 'xml'}); | |
15 | +var xmlBuilder = new xml2js.Builder({rootName: 'xml', headless: true}); | |
16 | 16 | |
17 | 17 | function start(options) { |
18 | 18 | if (!options) { |
... | ... | @@ -130,9 +130,7 @@ function requestToPartner(methodName, task) { |
130 | 130 | url: config.h2h_out.partner, |
131 | 131 | method: "POST", |
132 | 132 | body: payload, |
133 | - headers: { | |
134 | - 'Content-Type': 'text/xml', | |
135 | - } | |
133 | + | |
136 | 134 | } |
137 | 135 | |
138 | 136 | logger.verbose('Requesting to partner', {methodName: methodName, task: task, requestOpts: requestOpts}); |