Prepare for Uint8List SDK breaking changes (#34295)

https://github.com/dart-lang/sdk/issues/36900
This commit is contained in:
Todd Volkert
2019-06-12 10:22:50 -07:00
committed by GitHub
parent bdd07240cd
commit fb2f18e7e8
4 changed files with 10 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ class Upload {
} else {
// TODO(hansmuller): only retry on 5xx and 429 responses
logMessage('Request to save "$name" (length ${content.length}) failed with status ${response.statusCode}, will retry');
logMessage(await response.transform<String>(utf8.decoder).join());
logMessage(await response.cast<List<int>>().transform<String>(utf8.decoder).join());
}
return response.statusCode == HttpStatus.ok;
} on TimeoutException catch (_) {