Index: sdk/lib/io/websocket_impl.dart |
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart |
index 20ea830fb09131a6bb5b0a123f68a763021a0fe7..d7408b9ff544396b64432f636d6bf09904f6949d 100644 |
--- a/sdk/lib/io/websocket_impl.dart |
+++ b/sdk/lib/io/websocket_impl.dart |
@@ -766,7 +766,7 @@ class _WebSocketClientConnection |
class _WebSocket implements WebSocket { |
_WebSocket(String url, [protocols]) { |
- Uri uri = new Uri.fromString(url); |
+ Uri uri = Uri.parse(url); |
if (uri.scheme != "ws" && uri.scheme != "wss") { |
throw new WebSocketException("Unsupported URL scheme ${uri.scheme}"); |
} |