fix: delete "Content-Length" while redirect request to pro api (#5589)

This commit is contained in:
伍闲犬
2025-09-04 14:17:07 +08:00
committed by GitHub
parent c67e645469
commit 9be1e591d3
2 changed files with 4 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ interface ResponseDataType {
* 请求开始
*/
function requestStart(config: InternalAxiosRequestConfig): InternalAxiosRequestConfig {
if (config.headers) {
delete config.headers['content-length'];
}
return config;
}