diff --git a/src/request-base.js b/src/request-base.js index 241dafc9..efb87370 100644 --- a/src/request-base.js +++ b/src/request-base.js @@ -669,7 +669,8 @@ RequestBase.prototype.send = function (data) { if (typeof data[key] == "bigint") throw new Error("Cannot serialize BigInt value to json"); if (hasOwn(data, key)) this._data[key] = data[key]; } - } else if (typeof data === 'bigint') throw new Error("Cannot send value of type BigInt"); + } + else if (typeof data === 'bigint') throw new Error("Cannot send value of type BigInt"); else if (typeof data === 'string') { // default to x-www-form-urlencoded if (!type) this.type('form');