Send a head start of the response immediately before dripping

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-16 22:54:03 +01:00
1 parent 13a78f4268
commit e48b6bb832
17 files changed
+120 -8

No files matched your search

@@ -73,6 +73,7 @@ internal sealed class FlypaperMiddleware(
var response = context.Response;
response.StatusCode = StatusCodes.Status200OK;
response.ContentType = strategy is IStrategyDetails details ? details.MediaType : "text/html; charset=utf-8";
response.Headers.Server = "nginx";
response.Headers.CacheControl = "no-store";
response.Headers["X-Accel-Buffering"] = "no";
await response.StartAsync(ct);