Skip to content

Commit 8b6e55d

Browse files
authored
fix: axios transform request bind (usebruno#3123)
1 parent 572c7ea commit 8b6e55d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/bruno-electron/src/ipc/network/axios-instance.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ function makeAxiosInstance() {
6161
return data;
6262
}
6363

64-
axios.defaults.transformRequest.forEach((tr) => data = tr(data, headers));
64+
axios.defaults.transformRequest.forEach(function (tr) {
65+
data = tr.call(this, data, headers);
66+
}, this);
6567
return data;
6668
},
6769
proxy: false

0 commit comments

Comments
 (0)