mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:28:24 +08:00
fix: avoid changing Content-Type to be text/plain (#361)
Avoid changing Content-Type to be text/plain when retrying request
This commit is contained in:
parent
324a6d6f65
commit
4b72175a98
|
@ -141,7 +141,7 @@ const transform: AxiosTransform = {
|
||||||
resolve(config);
|
resolve(config);
|
||||||
}, config.requestOptions.retry.delay || 1);
|
}, config.requestOptions.retry.delay || 1);
|
||||||
});
|
});
|
||||||
|
config.headers = { ...config.headers, 'Content-Type': 'application/json;charset=UTF-8' };
|
||||||
return backoff.then((config) => request.request(config));
|
return backoff.then((config) => request.request(config));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user