Skip to content

Commit

Permalink
fix: 去掉 justForward 中的 body 部分
Browse files Browse the repository at this point in the history
因为出现 Request with a GET or HEAD method cannot have a body.
  • Loading branch information
menghuu committed Oct 7, 2024
1 parent 1338bbb commit cb08c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function justForward(upstreamURL, request) {
{
headers: request.headers,
method: request.method, // 理论上获取 token 就应该使用 GET,但是万一呢
body: request.body, // 一般 body 都是空的
// body: request.body, // 一般 body 都是空的
redirect: "follow",
}
)
Expand Down

0 comments on commit cb08c75

Please sign in to comment.