mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00
fix: delete "Content-Length" while redirect request to pro api (#5589)
This commit is contained in:
@@ -22,6 +22,9 @@ interface ResponseDataType {
|
||||
* 请求开始
|
||||
*/
|
||||
function requestStart(config: InternalAxiosRequestConfig): InternalAxiosRequestConfig {
|
||||
if (config.headers) {
|
||||
delete config.headers['content-length'];
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user