fix:request buff read
This commit is contained in:
parent
05e3680d10
commit
bbb8686a09
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user