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

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

Issue 12052038: Rename new Uri.fromString to Uri.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload because of Error. Created 7 years, 11 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/_internal/compiler/samples/leap/leap_leg.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index c0d315c68a9bedc4cb4fa4276a4a81a9d4472081..533709578c45b96cce15a315b7bbdaecc58240e5 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -1350,7 +1350,7 @@ class _HttpClientResponse
}
// Check for redirect loop
if (_connection._redirects != null) {
- Uri redirectUrl = new Uri.fromString(location[0]);
+ Uri redirectUrl = Uri.parse(location[0]);
for (int i = 0; i < _connection._redirects.length; i++) {
if (_connection._redirects[i].location.toString() ==
redirectUrl.toString()) {
@@ -1702,7 +1702,7 @@ class _HttpClientConnection
void redirect([String method, Uri url]) {
if (method == null) method = _method;
if (url == null) {
- url = new Uri.fromString(_response.headers.value(HttpHeaders.LOCATION));
+ url = Uri.parse(_response.headers.value(HttpHeaders.LOCATION));
}
// Always set the content length to 0 for redirects.
var mutable = _request._headers._mutable;
« no previous file with comments | « sdk/lib/_internal/compiler/samples/leap/leap_leg.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698