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+
15## 2.1.0
26
37- Support Firefox.
Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ import 'package:pedantic/pedantic.dart';
1111import 'package:shelf/shelf.dart' as shelf;
1212import 'package:stream_channel/stream_channel.dart' ;
1313
14+ // RFC 2616 requires carriage return delimiters.
1415String _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 ' ;
2122
2223/// A bi-directional SSE connection between server and browser.
2324class SseConnection extends StreamChannelMixin <String > {
Original file line number Diff line number Diff line change 11name : sse
2- version : 2.1.0
2+ version : 2.1.1
33author :
Dart Team <[email protected] > 44homepage : https://github.com/dart-lang/sse
55description : >-
You can’t perform that action at this time.
0 commit comments