froth-webdriverio-framework 3.0.126 → 3.0.127

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.
@@ -15,6 +15,8 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
15
15
  let headers = await formheaders(authentication, headersdetails, body_type);
16
16
  let body = null;
17
17
  console.log("Body Type:", body_type);
18
+ console.log("method:",method);
19
+ console.log("headers:",headers);
18
20
  if (body_type === "raw" && payloaddetails && Object.keys(payloaddetails).length > 0) {
19
21
  console.log("Payload (JSON):", JSON.stringify(payloaddetails));
20
22
  body = JSON.stringify(payloaddetails);
@@ -80,9 +82,7 @@ async function formheaders(authentication, headers, body_type) {
80
82
  if (!headers || typeof headers !== "object") {
81
83
  headers = {};
82
84
  }
83
- if (body_type === "formdata") {
84
- headers['Content-Type'] = 'multipart/form-data';
85
- }if(body_type === "raw"){
85
+ if(body_type === "raw"){
86
86
  headers['Content-Type'] = 'application/json';
87
87
  }
88
88
  // Add authentication headers based on the type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.126",
3
+ "version": "3.0.127",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",