..
This commit is contained in:
+11
@@ -218,6 +218,17 @@ app.MapGet("/health/ready", async (IRedisManager rm, HealthCheckService hc) =>
|
||||
catch { return Results.StatusCode(503); }
|
||||
});
|
||||
|
||||
app.Use(async (ctx, next) =>
|
||||
{
|
||||
app.Logger.LogInformation("REQ {Method} {Scheme}://{Host}{Path} CookieHdrLen={Len}",
|
||||
ctx.Request.Method,
|
||||
ctx.Request.Scheme,
|
||||
ctx.Request.Host.Value,
|
||||
ctx.Request.Path.Value,
|
||||
ctx.Request.Headers.Cookie.ToString().Length);
|
||||
|
||||
await next();
|
||||
});
|
||||
// ---- Session middleware (must be before routing) ----
|
||||
app.UseSession();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user