Fix SSE Maybe

This commit is contained in:
Michael Nolan 2021-11-07 21:00:58 -06:00
parent ef1f9bc8c0
commit 6b9706291d
5 changed files with 4 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<Properties StartupConfiguration="{E26F8159-6B4B-4660-A7A4-D0333DFEF0DD}|Default" NuGet.AddPackagesDialog.IncludePrerelease="True">
<MonoDevelop.Ide.Workbench ActiveDocument="Program.cs">
<Files>
<File FileName="Program.cs" Line="81" Column="13" />
<File FileName="Program.cs" Line="119" Column="70" />
<File FileName="Server/Models/InfoType.cs" Line="45" Column="39" />
<File FileName="Server/Models/YoutubeDownloaderResponse.cs" Line="1" Column="1" />
<File FileName="Server/Functions/Downloader.cs" Line="888" Column="8" />
@ -15,14 +15,7 @@
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="youtube-downloader" expanded="True">
<Node name="youtube-downloader" expanded="True">
<Node name="Server" expanded="True">
<Node name="Functions" expanded="True" />
</Node>
<Node name="Program.cs" selected="True" />
</Node>
</Node>
<Node name="youtube-downloader" expanded="True" />
</State>
</Pad>
</Pads>

View File

@ -308,6 +308,8 @@ namespace youtube_downloader
rp.AddHeader("Cache-Control", "no-cache");
rp.ContentType = "text/event-stream";
rp.WithCode();
Console.WriteLine(rp.SendChunked);
rp.SendChunked = false;
rp.ContentEncoding = Encoding.UTF8;
SSE.ServerSentEventItem.RegisterResponse(rp);

Binary file not shown.