mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
25w06a
This commit is contained in:
parent
f7e4fe71d7
commit
33b1682c7e
3 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
25w06a
|
||||||
|
---
|
||||||
|
- PRE-RELEASE: 此版本是改进验证版本,普通用户请勿使用;
|
||||||
|
- CHANGE: Remove `Conection: Upgrade` header, which is not currently supported by some web server configurations.
|
||||||
|
|
||||||
v2.0.1
|
v2.0.1
|
||||||
---
|
---
|
||||||
- RELEASE: v2.0.1正式版发布; 此版本是v2.0.0的小修复版本, 主要修复了Docker启动脚本存在的一些问题
|
- RELEASE: v2.0.1正式版发布; 此版本是v2.0.0的小修复版本, 主要修复了Docker启动脚本存在的一些问题
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
25w05a
|
25w06a
|
||||||
|
|
@ -65,6 +65,10 @@ func ChunkedProxyRequest(c *gin.Context, u string, cfg *config.Config, mode stri
|
||||||
|
|
||||||
req.Header.Set("Transfer-Encoding", "chunked") // 确保设置分块传输编码
|
req.Header.Set("Transfer-Encoding", "chunked") // 确保设置分块传输编码
|
||||||
setRequestHeaders(c, req)
|
setRequestHeaders(c, req)
|
||||||
|
// 删除Conection Upgrade头, 避免与HTTP/2冲突(检查是否存在Upgrade头)
|
||||||
|
if req.Header.Get("Connection") == "Upgrade" {
|
||||||
|
req.Header.Del("Connection")
|
||||||
|
}
|
||||||
AuthPassThrough(c, cfg, req)
|
AuthPassThrough(c, cfg, req)
|
||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue