This commit is contained in:
WJQSERVER 2025-02-08 20:09:11 +08:00
parent c184e46917
commit efdf5b0221
8 changed files with 136 additions and 4 deletions

View file

@ -54,7 +54,6 @@ func initChunkedHTTPClient() {
func ChunkedProxyRequest(c *gin.Context, u string, cfg *config.Config, mode string, runMode string) {
method := c.Request.Method
logInfo("%s %s %s %s %s Chunked-Proxy-Request", c.ClientIP(), method, u, c.Request.Header.Get("User-Agent"), c.Request.Proto)
// 发送HEAD请求, 预获取Content-Length
headReq, err := http.NewRequest("HEAD", u, nil)