Skip to content

Commit

Permalink
Merge pull request #3 from frontegg/remove-json-from-options
Browse files Browse the repository at this point in the history
Remove json from options when using got
  • Loading branch information
noa-frontegg authored Jun 2, 2023
2 parents 00e9b18 + edfb04a commit 0536be5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ module.exports = prototypal({
options.body = JSON.stringify(options.body);
}

if (!options.body) {
options.json = opts.json !== false;
}

return this.getter.got(uri, options).then(res => res.body);
},
});

0 comments on commit 0536be5

Please sign in to comment.