mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
remove unuse code
This commit is contained in:
parent
030f0d12a9
commit
ad4d8eb670
1 changed files with 0 additions and 6 deletions
|
|
@ -122,11 +122,5 @@ func GitReq(ctx context.Context, c *app.RequestContext, u string, cfg *config.Co
|
||||||
c.Response.Header.Set("Expires", "0")
|
c.Response.Header.Set("Expires", "0")
|
||||||
}
|
}
|
||||||
|
|
||||||
bodySize, _ := strconv.Atoi(contentLength)
|
|
||||||
|
|
||||||
if contentLength != "" {
|
|
||||||
c.SetBodyStream(resp.Body, bodySize)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
c.SetBodyStream(resp.Body, -1)
|
c.SetBodyStream(resp.Body, -1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue