botium-core 1.15.3 → 1.15.4

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-es.js CHANGED
@@ -35,7 +35,7 @@ import express from 'express';
35
35
  import bodyParser from 'body-parser';
36
36
 
37
37
  var name = "botium-core";
38
- var version$1 = "1.15.3";
38
+ var version$1 = "1.15.4";
39
39
  var description = "The Selenium for Chatbots";
40
40
  var main = "index.js";
41
41
  var module = "dist/botium-es.js";
@@ -8167,9 +8167,8 @@ var SimpleRestContainer_1 = class SimpleRestContainer {
8167
8167
  if (requestOptions.body) {
8168
8168
  debug$4('Request.form and request.body are mutually exclusive');
8169
8169
  }
8170
+ requestOptions.headers['Content-Type'] = 'application/x-www-form-urlencoded';
8170
8171
  requestOptions.body = new URLSearchParams(requestOptions.form).toString();
8171
- // it is set automatically by fetch
8172
- // requestOptions.headers['Content-Type'] = 'application/x-www-form-urlencoded'
8173
8172
  delete requestOptions.form;
8174
8173
  }
8175
8174
  return requestOptions;
@@ -8589,11 +8588,11 @@ var SimpleRestContainer_1 = class SimpleRestContainer {
8589
8588
  }
8590
8589
  }
8591
8590
  this._addRequestOptions(requestOptions);
8592
- this._fetchify(requestOptions);
8593
8591
  await executeHook(this.caps, this.requestHook, Object.assign({
8594
8592
  requestOptions
8595
8593
  }, this.view));
8596
8594
  this._addRequestCookies(requestOptions);
8595
+ this._fetchify(requestOptions);
8597
8596
  return requestOptions;
8598
8597
  }
8599
8598
  async _waitForUrlResponse(httpConfig, retries) {