From 8b6e55dfc0e11beba4d972bdeb77fa6354375fd5 Mon Sep 17 00:00:00 2001 From: lohit Date: Wed, 18 Sep 2024 15:08:04 +0530 Subject: [PATCH] fix: axios transform request bind (#3123) --- packages/bruno-electron/src/ipc/network/axios-instance.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/network/axios-instance.js b/packages/bruno-electron/src/ipc/network/axios-instance.js index f4ae59ced..d5208ceac 100644 --- a/packages/bruno-electron/src/ipc/network/axios-instance.js +++ b/packages/bruno-electron/src/ipc/network/axios-instance.js @@ -61,7 +61,9 @@ function makeAxiosInstance() { return data; } - axios.defaults.transformRequest.forEach((tr) => data = tr(data, headers)); + axios.defaults.transformRequest.forEach(function (tr) { + data = tr.call(this, data, headers); + }, this); return data; }, proxy: false