mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
update
This commit is contained in:
parent
33b1682c7e
commit
ac6b641995
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ func ChunkedProxyRequest(c *gin.Context, u string, cfg *config.Config, mode stri
|
|||
return
|
||||
}
|
||||
setRequestHeaders(c, headReq)
|
||||
// 删除Conection Upgrade头, 避免与HTTP/2冲突(检查是否存在Upgrade头)
|
||||
if headReq.Header.Get("Connection") == "Upgrade" {
|
||||
headReq.Header.Del("Connection")
|
||||
}
|
||||
AuthPassThrough(c, cfg, headReq)
|
||||
|
||||
headResp, err := client.Do(headReq)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue