remove unuse code

This commit is contained in:
wjqserver 2025-04-29 22:25:20 +08:00
parent 030f0d12a9
commit ad4d8eb670

View file

@ -122,11 +122,5 @@ func GitReq(ctx context.Context, c *app.RequestContext, u string, cfg *config.Co
c.Response.Header.Set("Expires", "0")
}
bodySize, _ := strconv.Atoi(contentLength)
if contentLength != "" {
c.SetBodyStream(resp.Body, bodySize)
return
}
c.SetBodyStream(resp.Body, -1)
}