botium-core 1.15.4 → 1.15.5
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/dist/botium-cjs.js
CHANGED
|
@@ -77,7 +77,7 @@ var express__default = /*#__PURE__*/_interopDefaultLegacy(express);
|
|
|
77
77
|
var bodyParser__default = /*#__PURE__*/_interopDefaultLegacy(bodyParser);
|
|
78
78
|
|
|
79
79
|
var name = "botium-core";
|
|
80
|
-
var version$1 = "1.15.
|
|
80
|
+
var version$1 = "1.15.5";
|
|
81
81
|
var description = "The Selenium for Chatbots";
|
|
82
82
|
var main = "index.js";
|
|
83
83
|
var module$1 = "dist/botium-es.js";
|
|
@@ -8489,7 +8489,8 @@ var SimpleRestContainer_1 = class SimpleRestContainer {
|
|
|
8489
8489
|
fetch(requestOptions.uri, requestOptions).then(async bodyRaw => {
|
|
8490
8490
|
let body;
|
|
8491
8491
|
try {
|
|
8492
|
-
|
|
8492
|
+
const contentType = bodyRaw.headers.get('content-type');
|
|
8493
|
+
if (contentType && contentType.includes('application/json')) {
|
|
8493
8494
|
try {
|
|
8494
8495
|
body = await bodyRaw.json();
|
|
8495
8496
|
} catch (err) {
|