mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
25w48c
This commit is contained in:
parent
fd7e270db4
commit
97b1f69f99
3 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
25w48c - 2025-06-15
|
||||||
|
---
|
||||||
|
- PRE-RELEASE: 此版本是v3.5.6预发布版本,请勿在生产环境中使用;
|
||||||
|
- CHANGE: 加入内部301处理
|
||||||
|
|
||||||
25w48b - 2025-06-15
|
25w48b - 2025-06-15
|
||||||
---
|
---
|
||||||
- PRE-RELEASE: 此版本是v3.5.6预发布版本,请勿在生产环境中使用;
|
- PRE-RELEASE: 此版本是v3.5.6预发布版本,请勿在生产环境中使用;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
25w48b
|
25w48c
|
||||||
|
|
@ -59,7 +59,7 @@ func ChunkedProxyRequest(ctx context.Context, c *app.RequestContext, u string, c
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理302情况
|
// 处理302情况
|
||||||
if resp.StatusCode == 302 {
|
if resp.StatusCode == 302 || resp.StatusCode == 301 {
|
||||||
finalURL := resp.Header.Get("Location")
|
finalURL := resp.Header.Get("Location")
|
||||||
if finalURL != "" {
|
if finalURL != "" {
|
||||||
err = resp.Body.Close()
|
err = resp.Body.Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue