We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e180ba3 commit 1bec18eCopy full SHA for 1bec18e
src/templates/core/fetch/getRequestBody.hbs
@@ -1,5 +1,5 @@
1
const getRequestBody = (options: ApiRequestOptions): any => {
2
- if (options.body) {
+ if (options.body !== undefined) {
3
if (options.mediaType?.includes('/json')) {
4
return JSON.stringify(options.body)
5
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
0 commit comments