This commit is contained in:
WJQSERVER 2025-01-03 18:45:25 +08:00
parent a281d4c779
commit 972baee564
4 changed files with 10 additions and 2 deletions

View file

@ -179,6 +179,7 @@ func ProxyRequest(c *gin.Context, u string, cfg *config.Config, mode string, run
// 发送HEAD请求, 预获取Content-Length
headReq := client.R()
setRequestHeaders(c, headReq)
authPassThrough(c, cfg, headReq)
headResp, err := headReq.Head(u)
if err != nil {