fix: axios transform request bind (#3123)

This commit is contained in:
lohit 2024-09-18 15:08:04 +05:30 committed by GitHub
parent 572c7ea2ae
commit 8b6e55dfc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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