Skip to content

Commit

Permalink
Merge pull request #691 from codeforequity-at/develop
Browse files Browse the repository at this point in the history
Botium Core 1.13.2
  • Loading branch information
Botium authored Aug 1, 2022
2 parents df40ef8 + 3485071 commit b37d67f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botium-core",
"version": "1.13.1",
"version": "1.13.2",
"description": "The Selenium for Chatbots",
"main": "index.js",
"module": "dist/botium-es.js",
Expand Down
3 changes: 3 additions & 0 deletions src/containers/plugins/SimpleRestContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ module.exports = class SimpleRestContainer {
try {
requestOptions.body = this._getMustachedCap(Capabilities.SIMPLEREST_BODY_TEMPLATE, !bodyRaw)
requestOptions.json = !bodyRaw
if (requestOptions.json && (!requestOptions.body || Object.keys(requestOptions.body).length === 0)) {
debug(`warning: requestOptions.body content seems to be empty - ${requestOptions.body} - capability: "${this.caps[Capabilities.SIMPLEREST_BODY_TEMPLATE]}"`)
}
} catch (err) {
throw new Error(`composing body from SIMPLEREST_BODY_TEMPLATE failed (${err.message})`)
}
Expand Down

0 comments on commit b37d67f

Please sign in to comment.