fix:request buff read
This commit is contained in:
parent
05e3680d10
commit
bbb8686a09
@ -47,6 +47,12 @@ public class InterfaceForwardApiModule : FakeModule
|
|||||||
public override void ConfigureApplication(ApplicationConfigureContext context)
|
public override void ConfigureApplication(ApplicationConfigureContext context)
|
||||||
{
|
{
|
||||||
var app = context.GetWebApplication();
|
var app = context.GetWebApplication();
|
||||||
|
|
||||||
|
app.Use(async (httpContext, next) =>
|
||||||
|
{
|
||||||
|
httpContext.Request.EnableBuffering();
|
||||||
|
await next.Invoke();
|
||||||
|
});
|
||||||
|
|
||||||
// Add Aspire default endpoints.
|
// Add Aspire default endpoints.
|
||||||
app.MapDefaultEndpoints();
|
app.MapDefaultEndpoints();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user