fix:request buff read

This commit is contained in:
xiaolipro 2025-07-26 09:39:22 +08:00
parent 05e3680d10
commit bbb8686a09

View File

@ -48,6 +48,12 @@ public class InterfaceForwardApiModule : FakeModule
{
var app = context.GetWebApplication();
app.Use(async (httpContext, next) =>
{
httpContext.Request.EnableBuffering();
await next.Invoke();
});
// Add Aspire default endpoints.
app.MapDefaultEndpoints();
app.MapControllers();