From 7d1fcecb1ceb7ce2c6663a2a1683d4acaa82a99b Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 26 Jul 2023 14:16:25 -0700 Subject: [PATCH] merge conflict --- src/request-base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');