This commit is contained in:
wjqserver 2025-06-15 15:51:50 +08:00
parent fd7e270db4
commit 97b1f69f99
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# 更新日志
25w48c - 2025-06-15
---
- PRE-RELEASE: 此版本是v3.5.6预发布版本,请勿在生产环境中使用;
- CHANGE: 加入内部301处理
25w48b - 2025-06-15
---
- PRE-RELEASE: 此版本是v3.5.6预发布版本,请勿在生产环境中使用;

View file

@ -1 +1 @@
25w48b
25w48c

View file

@ -59,7 +59,7 @@ func ChunkedProxyRequest(ctx context.Context, c *app.RequestContext, u string, c
}
// 处理302情况
if resp.StatusCode == 302 {
if resp.StatusCode == 302 || resp.StatusCode == 301 {
finalURL := resp.Header.Get("Location")
if finalURL != "" {
err = resp.Body.Close()