Skip to content

Commit

Permalink
fix(fetch): bodyJson issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 19, 2022
1 parent ee0282e commit 5d8d6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/fetch/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function _processOptions(options: Partial<FetchOptions> & {url: string}): FetchO
}
}

if (options.body == null && options.bodyJson != null) {
if (options.bodyJson != null) {
options.body = JSON.stringify(options.bodyJson);
options.headers = {
...options.headers,
Expand Down

0 comments on commit 5d8d6fa

Please sign in to comment.