Skip to content

Commit 0a85e41

Browse files
lrhnkevmoo
authored andcommitted
Fix deprecated constant. (flutter#9)
1 parent 107c312 commit 0a85e41

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.2+2
2+
3+
* Stopped using deprected `HTML_ESCAPE` constant name.
4+
15
## 0.2.2+1
26

37
* Updated SDK version to 2.0.0-dev.17.0

lib/src/web_socket_handler.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class WebSocketHandler {
117117
///
118118
/// [title] and [message] will be automatically HTML-escaped.
119119
Response _htmlResponse(int statusCode, String title, String message) {
120-
title = HTML_ESCAPE.convert(title);
121-
message = HTML_ESCAPE.convert(message);
120+
title = htmlEscape.convert(title);
121+
message = htmlEscape.convert(message);
122122
return new Response(statusCode, body: """
123123
<!doctype html>
124124
<html>

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: shelf_web_socket
2-
version: 0.2.2+1
2+
version: 0.2.2+2
33
author: "Dart Team <[email protected]>"
44
homepage: http://github.com/dart-lang/shelf_web_socket
55
description: >

0 commit comments

Comments
 (0)