Skip to content

Commit

Permalink
Remove usage of deprecated constants. (flutter#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrhn authored Jun 1, 2018
1 parent 3af5422 commit 9196951
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.8

* Remove use of deprecated constant name.

## 1.0.7

* Support the latest dev SDK.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class WebSocketChannel extends StreamChannelMixin {
static String signKey(String key) {
// We use [codeUnits] here rather than UTF-8-decoding the string because
// [key] is expected to be base64 encoded, and so will be pure ASCII.
return convert.BASE64
return convert.base64
.encode(sha1.convert((key + webSocketGUID).codeUnits).bytes);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: web_socket_channel
version: 1.0.7
version: 1.0.8
description: StreamChannel wrappers for WebSockets.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/web_socket_channel
Expand Down

0 comments on commit 9196951

Please sign in to comment.