File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Journal-Limpet/Controllers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ public async Task SSEActivityAsync(CancellationToken ct)
24
24
25
25
var response = Response ;
26
26
27
- response . Headers . Add ( "Content-Type" , "text/event-stream" ) ;
28
- response . Headers . Add ( "X-Accel-Buffering" , "no" ) ;
29
- response . Headers . Add ( "Cache-Control" , "no-cache" ) ;
27
+ response . Headers [ "Content-Type" ] = "text/event-stream" ;
28
+ response . Headers [ "X-Accel-Buffering" ] = "no" ;
29
+ response . Headers [ "Cache-Control" ] = "no-cache" ;
30
30
31
31
await response . WriteAsync ( "data: Connected to Activity SSE endpoint\r \r " ) ;
32
32
await response . Body . FlushAsync ( ) ;
@@ -73,9 +73,9 @@ public async Task SSELiveUserLog(CancellationToken token)
73
73
74
74
var response = Response ;
75
75
76
- response . Headers . Add ( "Content-Type" , "text/event-stream" ) ;
77
- response . Headers . Add ( "X-Accel-Buffering" , "no" ) ;
78
- response . Headers . Add ( "Cache-Control" , "no-cache" ) ;
76
+ response . Headers [ "Content-Type" ] = "text/event-stream" ;
77
+ response . Headers [ "X-Accel-Buffering" ] = "no" ;
78
+ response . Headers [ "Cache-Control" ] = "no-cache" ;
79
79
80
80
await response . WriteAsync ( "data: Connected to Log SSE endpoint\r \r " ) ;
81
81
await response . Body . FlushAsync ( ) ;
You can’t perform that action at this time.
0 commit comments