File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.1
2
+
3
+ - Use proper headers delimiter.
4
+
1
5
## 2.1.0
2
6
3
7
- Support Firefox.
Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ import 'package:pedantic/pedantic.dart';
11
11
import 'package:shelf/shelf.dart' as shelf;
12
12
import 'package:stream_channel/stream_channel.dart' ;
13
13
14
+ // RFC 2616 requires carriage return delimiters.
14
15
String _sseHeaders (String origin) => 'HTTP/1.1 200 OK\r\n '
15
- 'Content-Type: text/event-stream\n \n '
16
- 'Cache-Control: no-cache\n \n '
17
- 'Connection: keep-alive\n \n '
18
- 'Access-Control-Allow-Credentials: true\n \n '
19
- 'Access-Control-Allow-Origin: $origin \n \n '
20
- '\n \n ' ;
16
+ 'Content-Type: text/event-stream\r \n '
17
+ 'Cache-Control: no-cache\r \n '
18
+ 'Connection: keep-alive\r \n '
19
+ 'Access-Control-Allow-Credentials: true\r \n '
20
+ 'Access-Control-Allow-Origin: $origin \r \n '
21
+ '\r\n\r \n ' ;
21
22
22
23
/// A bi-directional SSE connection between server and browser.
23
24
class SseConnection extends StreamChannelMixin <String > {
Original file line number Diff line number Diff line change 1
1
name : sse
2
- version : 2.1.0
2
+ version : 2.1.1
3
3
author :
Dart Team <[email protected] >
4
4
homepage : https://github.com/dart-lang/sse
5
5
description : >-
You can’t perform that action at this time.
0 commit comments