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:
moozzyk 2016-10-06 11:22:19 -07:00 committed by Pawel Kadluczka
parent d0196914ff
commit bbecb0c0dc
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{