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();
|
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();
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user