@portal-hq/utils 0.2.22-beta1 → 0.2.22

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.
@@ -58,7 +58,7 @@ class HttpRequest {
58
58
  // Stringify if we're declaring this request to be a JSON request
59
59
  return JSON.stringify(this.body);
60
60
  }
61
- else if (this.headers['Content-Type'] === 'text/plain') {
61
+ else if (this.headers['Content-Type'].includes('multipart/related')) {
62
62
  return this.body;
63
63
  }
64
64
  else {
@@ -56,7 +56,7 @@ class HttpRequest {
56
56
  // Stringify if we're declaring this request to be a JSON request
57
57
  return JSON.stringify(this.body);
58
58
  }
59
- else if (this.headers['Content-Type'] === 'text/plain') {
59
+ else if (this.headers['Content-Type'].includes('multipart/related')) {
60
60
  return this.body;
61
61
  }
62
62
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/utils",
3
- "version": "0.2.22-beta1",
3
+ "version": "0.2.22",
4
4
  "main": "lib/commonjs/index",
5
5
  "module": "lib/esm/index",
6
6
  "source": "src/index",
@@ -71,7 +71,7 @@ class HttpRequest {
71
71
  if (this.headers['Content-Type'] === 'application/json') {
72
72
  // Stringify if we're declaring this request to be a JSON request
73
73
  return JSON.stringify(this.body)
74
- } else if (this.headers['Content-Type'] === 'text/plain') {
74
+ } else if (this.headers['Content-Type'].includes('multipart/related')) {
75
75
  return this.body
76
76
  } else {
77
77
  // Otherwise, build a serialized string