This commit is contained in:
wjqserver 2025-06-15 15:14:15 +08:00
parent cf5ae0d184
commit fd7e270db4
10 changed files with 56 additions and 21 deletions

View file

@ -28,6 +28,7 @@ func ChunkedProxyRequest(ctx context.Context, c *app.RequestContext, u string, c
logError("Failed to close response body: %v", err)
}
}
c.Abort()
}()
rb := client.NewRequestBuilder(string(c.Request.Method()), u)
@ -152,6 +153,7 @@ func ChunkedProxyRequest(ctx context.Context, c *app.RequestContext, u string, c
return
}
c.SetBodyStream(bodyReader, -1)
bodyReader.Close()
}
}