File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/service/common/api
projects/app/src/pages/api/support/outLink/feishu Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ interface ResponseDataType {
2222 * 请求开始
2323 */
2424function requestStart ( config : InternalAxiosRequestConfig ) : InternalAxiosRequestConfig {
25+ if ( config . headers ) {
26+ delete config . headers [ 'content-length' ] ;
27+ }
2528 return config ;
2629}
2730
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function handler(
1111) : Promise < void > {
1212 // send to pro
1313 const { token } = req . query ;
14- const result = await POST < any > ( `support/outLink/feishu/${ token } ` , req . body , {
14+ const result = await POST < any > ( `/ support/outLink/feishu/${ token } ` , req . body , {
1515 headers : req . headers as any
1616 } ) ;
1717 res . json ( result ) ;
You can’t perform that action at this time.
0 commit comments