Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: sdk/lib/io/websocket_impl.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/io.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index 3cef0ad606f7c15279ad9d2e3311d67a442466af..f0c5abd53f87fece3cf7554876c25223bf10927e 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -660,13 +660,13 @@ class _WebSocketImpl extends Stream implements WebSocket {
}
String nonce = CryptoUtils.bytesToBase64(nonceData);
- uri = new Uri.fromComponents(scheme: uri.scheme == "wss" ? "https" : "http",
- userInfo: uri.userInfo,
- domain: uri.domain,
- port: uri.port,
- path: uri.path,
- query: uri.query,
- fragment: uri.fragment);
+ uri = new Uri(scheme: uri.scheme == "wss" ? "https" : "http",
+ userInfo: uri.userInfo,
+ host: uri.host,
+ port: uri.port,
+ path: uri.path,
+ query: uri.query,
+ fragment: uri.fragment);
return _httpClient.openUrl("GET", uri)
.then((request) {
// Setup the initial handshake.
« no previous file with comments | « sdk/lib/io/io.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698