fix: 加密后修改请求头会造成报错HttpMediaTypeNotSupportedException

This commit is contained in:
dap 2025-02-07 11:45:57 +08:00
parent 0be1a0825d
commit cd77063f68

View File

@ -129,7 +129,6 @@ function createRequestClient(baseURL: string) {
typeof config.data === 'object'
? encryptWithAes(JSON.stringify(config.data), aesKey)
: encryptWithAes(config.data, aesKey);
config.headers['Content-Type'] = 'text/plain;charset=utf-8';
}
return config;
},