botium-core 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -520,6 +520,9 @@ module.exports = class SimpleRestContainer {
|
|
|
520
520
|
try {
|
|
521
521
|
requestOptions.body = this._getMustachedCap(Capabilities.SIMPLEREST_BODY_TEMPLATE, !bodyRaw)
|
|
522
522
|
requestOptions.json = !bodyRaw
|
|
523
|
+
if (requestOptions.json && (!requestOptions.body || Object.keys(requestOptions.body).length === 0)) {
|
|
524
|
+
debug(`warning: requestOptions.body content seems to be empty - ${requestOptions.body} - capability: "${this.caps[Capabilities.SIMPLEREST_BODY_TEMPLATE]}"`)
|
|
525
|
+
}
|
|
523
526
|
} catch (err) {
|
|
524
527
|
throw new Error(`composing body from SIMPLEREST_BODY_TEMPLATE failed (${err.message})`)
|
|
525
528
|
}
|