Index: utils/pub/command_lish.dart |
diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart |
index 544fb9451fe1990177dd1dbd9c93240ea4dea5c2..59bfbbf452cd7f4e3da6b3fbf8c5c5a1b8f4fc88 100644 |
--- a/utils/pub/command_lish.dart |
+++ b/utils/pub/command_lish.dart |
@@ -38,7 +38,7 @@ class LishCommand extends PubCommand { |
} |
/// The URL of the server to which to upload the package. |
- Uri get server => new Uri.fromString(commandOptions['server']); |
+ Uri get server => Uri.parse(commandOptions['server']); |
Future _publish(packageBytes) { |
var cloudStorageUrl; |
@@ -51,7 +51,7 @@ class LishCommand extends PubCommand { |
var url = _expectField(parameters, 'url', response); |
if (url is! String) invalidServerResponse(response); |
- cloudStorageUrl = new Uri.fromString(url); |
+ cloudStorageUrl = Uri.parse(url); |
var request = new http.MultipartRequest('POST', cloudStorageUrl); |
var fields = _expectField(parameters, 'fields', response); |