This commit is contained in:
wjqserver 2025-05-13 14:51:34 +08:00
parent ef6e0a78cd
commit 43469532d4
7 changed files with 25 additions and 12 deletions

View file

@ -42,6 +42,7 @@ func GhcrRequest(ctx context.Context, c *app.RequestContext, u string, cfg *conf
rb := client.NewRequestBuilder(string(method), u)
rb.NoDefaultHeaders()
rb.SetBody(c.Request.BodyStream())
rb.WithContext(ctx)
//req, err = client.NewRequest(string(method), u, c.Request.BodyStream())
req, err = rb.Build()