From 8279a475091c4c0e4cee6c99b8b58698f43a7fb9 Mon Sep 17 00:00:00 2001 From: Arturs Janevics Date: Wed, 29 Nov 2023 23:42:22 +0100 Subject: [PATCH] Define local request, so that the one in the global space is not overwritten. --- lib/http/base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http/base.js b/lib/http/base.js index 2871c1777..132a87516 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -36,6 +36,7 @@ HttpClient.prototype.getConnectionConfig = function () * @returns {Object} an object representing the request that was issued. */ HttpClient.prototype.request = function (options) { + let request; const requestOptions = prepareRequestOptions.call(this, options); let sendRequest = async function sendRequest() { request = axios.request(requestOptions).then(response => {