Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
9be1e591
authored
Sep 04, 2025
by
伍闲犬
Committed by
GitHub
Sep 04, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: delete "Content-Length" while redirect request to pro api (#5589)
parent
c67e6454
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
packages/service/common/api/plusRequest.ts
+3
-0
projects/app/src/pages/api/support/outLink/feishu/[token].ts
+1
-1
No files found.
packages/service/common/api/plusRequest.ts
View file @
9be1e591
...
@@ -22,6 +22,9 @@ interface ResponseDataType {
...
@@ -22,6 +22,9 @@ interface ResponseDataType {
* 请求开始
* 请求开始
*/
*/
function
requestStart
(
config
:
InternalAxiosRequestConfig
):
InternalAxiosRequestConfig
{
function
requestStart
(
config
:
InternalAxiosRequestConfig
):
InternalAxiosRequestConfig
{
if
(
config
.
headers
)
{
delete
config
.
headers
[
'content-length'
];
}
return
config
;
return
config
;
}
}
...
...
projects/app/src/pages/api/support/outLink/feishu/[token].ts
View file @
9be1e591
...
@@ -11,7 +11,7 @@ async function handler(
...
@@ -11,7 +11,7 @@ async function handler(
):
Promise
<
void
>
{
):
Promise
<
void
>
{
// send to pro
// send to pro
const
{
token
}
=
req
.
query
;
const
{
token
}
=
req
.
query
;
const
result
=
await
POST
<
any
>
(
`support/outLink/feishu/
${
token
}
`
,
req
.
body
,
{
const
result
=
await
POST
<
any
>
(
`
/
support/outLink/feishu/
${
token
}
`
,
req
.
body
,
{
headers
:
req
.
headers
as
any
headers
:
req
.
headers
as
any
});
});
res
.
json
(
result
);
res
.
json
(
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment