mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 16:21:11 +08:00
25w12b
This commit is contained in:
parent
c184e46917
commit
efdf5b0221
8 changed files with 136 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue