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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue