@tpzdsp/next-toolkit 1.4.1 → 1.4.2
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/package.json +1 -1
- package/src/utils/http.ts +1 -1
package/package.json
CHANGED
package/src/utils/http.ts
CHANGED
|
@@ -134,7 +134,7 @@ const post = <Ok, Error = ApiFailure>(
|
|
|
134
134
|
if (body && typeof body === 'object' && !Array.isArray(body) && Object.keys(body).length === 0) {
|
|
135
135
|
requestBody = '';
|
|
136
136
|
} else if (body === undefined || body === null) {
|
|
137
|
-
requestBody = '';
|
|
137
|
+
requestBody = '{}';
|
|
138
138
|
} else {
|
|
139
139
|
requestBody = JSON.stringify(body);
|
|
140
140
|
}
|