- CHANGE: 优化`proxy`核心模块, 使用Chuncked Buffer传输数据, 减少内存占用
- REMOVE: caddy
- REMOVE: nocache
- CHANGE: 优化前端页面
This commit is contained in:
WJQSERVER 2025-01-19 22:00:10 +08:00 committed by GitHub
parent beb441f0b0
commit c393191b93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 596 additions and 559 deletions

16
proxy/reqheader.go Normal file
View file

@ -0,0 +1,16 @@
package proxy
import (
"net/http"
"github.com/gin-gonic/gin"
)
// 设置请求头
func setRequestHeaders(c *gin.Context, req *http.Request) {
for key, values := range c.Request.Header {
for _, value := range values {
req.Header.Set(key, value)
}
}
}