Skip to content

Commit 107c312

Browse files
lrhnkevmoo
authored andcommitted
Remove upper case constants (flutter#6)
1 parent 8cbd4e1 commit 107c312

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ language: dart
22

33
dart:
44
- dev
5-
- stable
6-
75
dart_task:
86
- test
97

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.2+1
2+
3+
* Updated SDK version to 2.0.0-dev.17.0
4+
15
## 0.2.2
26

37
* Stop using comment-based generic syntax.

lib/src/web_socket_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class WebSocketHandler {
6666

6767
var protocol = _chooseProtocol(request);
6868
request.hijack((channel) {
69-
var sink = UTF8.encoder.startChunkedConversion(channel.sink);
69+
var sink = utf8.encoder.startChunkedConversion(channel.sink);
7070
sink.add("HTTP/1.1 101 Switching Protocols\r\n"
7171
"Upgrade: websocket\r\n"
7272
"Connection: Upgrade\r\n"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: shelf_web_socket
2-
version: 0.2.2
2+
version: 0.2.2+1
33
author: "Dart Team <[email protected]>"
44
homepage: http://github.com/dart-lang/shelf_web_socket
55
description: >
@@ -12,4 +12,4 @@ dev_dependencies:
1212
http: ">=0.10.0 <0.12.0"
1313
test: "^0.12.0"
1414
environment:
15-
sdk: ">=1.21.0 <2.0.0"
15+
sdk: ">=2.0.0-dev.17.0 <2.0.0"

0 commit comments

Comments
 (0)