Skip to content

Commit

Permalink
tweak null body checking
Browse files Browse the repository at this point in the history
  • Loading branch information
sapiderman committed Nov 15, 2024
1 parent 167b312 commit a2a1589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function compileFetch(

return (url) =>
fetch(url, {
body: body === '' ? undefined : body,
body: body === 'null' ? undefined : body,
redirect: 'manual',
dispatcher: new Agent({
connect: {
Expand Down

0 comments on commit a2a1589

Please sign in to comment.