@portal-hq/utils 0.2.22-beta1 → 0.2.22-beta2
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']
|
|
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']
|
|
59
|
+
else if (this.headers['Content-Type'].includes('multipart/related')) {
|
|
60
60
|
return this.body;
|
|
61
61
|
}
|
|
62
62
|
else {
|
package/package.json
CHANGED
|
@@ -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']
|
|
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
|