Index: utils/pub/hosted_source.dart |
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart |
index 3ae7c5581f886303b65ba2f393d42e83928cb926..81a80574578c629f6178467bcf32728a65e220d9 100644 |
--- a/utils/pub/hosted_source.dart |
+++ b/utils/pub/hosted_source.dart |
@@ -73,7 +73,7 @@ class HostedSource extends Source { |
// Download and extract the archive to a temp directory. |
var tempDir; |
return Future.wait([ |
- httpClient.send(new http.Request("GET", new Uri.fromString(fullUrl))) |
+ httpClient.send(new http.Request("GET", Uri.parse(fullUrl))) |
.then((response) => response.stream), |
systemCache.createTempDir() |
]).then((args) { |