Fixing SSE transport
Content-Encoding: identity disables all the transformations and therefore fixes the issue where IIS is buffering SSE data
This commit is contained in:
parent
d0196914ff
commit
bbecb0c0dc
|
|
@ -20,6 +20,7 @@ namespace Microsoft.AspNetCore.Sockets
|
|||
{
|
||||
context.Response.ContentType = "text/event-stream";
|
||||
context.Response.Headers["Cache-Control"] = "no-cache";
|
||||
context.Response.Headers["Content-Encoding"] = "identity";
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue