Browse Source

don't set empty body to empty string

pull/4/head
f0x 5 years ago
parent
commit
390752380b
  1. 2
      src/oauth.js

2
src/oauth.js

@ -145,8 +145,6 @@ module.exports = function oauthClient(config, initState) {
if (type == "json" && body != undefined) {
headers["Content-Type"] = "application/json";
body = JSON.stringify(data);
} else if (body == undefined) {
body = "";
}
return fetch(url.href, {
method,

Loading…
Cancel
Save