Pass only Uri to package:http APIs (#74285)

This commit is contained in:
Nate Bosch
2021-01-20 09:59:03 -08:00
committed by GitHub
parent 5318782ac8
commit dcc4fdd558
4 changed files with 6 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ class Cocoon {
/// Make an API request to Cocoon.
Future<Map<String, dynamic>> _sendCocoonRequest(String apiPath, [dynamic jsonData]) async {
final String url = '$baseCocoonApiUrl/$apiPath';
final Uri url = Uri.parse('$baseCocoonApiUrl/$apiPath');
/// Retry requests to Cocoon as sometimes there are issues with the servers, such
/// as version changes to the backend, datastore issues, or latency issues.