Prepare for Uint8List SDK breaking changes (#34295)
https://github.com/dart-lang/sdk/issues/36900
This commit is contained in:
@@ -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 (_) {
|
||||
|
||||
Reference in New Issue
Block a user