mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -47,6 +47,13 @@ module.exports = function dispatchRequest(config) {
|
||||
}
|
||||
);
|
||||
|
||||
// Remove header where value is null
|
||||
utils.forEach(config.headers, function deleteNullValueHeaders(value, key) {
|
||||
if (value === null) {
|
||||
delete config.headers[key];
|
||||
}
|
||||
});
|
||||
|
||||
var adapter = config.adapter || defaults.adapter;
|
||||
|
||||
return adapter(config).then(function onAdapterResolution(response) {
|
||||
|
||||
Reference in New Issue
Block a user