We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5b5fe commit b868df1Copy full SHA for b868df1
lib/api/core.dart
@@ -56,7 +56,7 @@ class ApiConnection {
56
if (response.statusCode != 200) {
57
throw Exception("error on ${request.method} ${request.url.path}: status ${response.statusCode}");
58
}
59
- return utf8.decode((await http.Response.fromStream(response)).bodyBytes);
+ return utf8.decode(await response.stream.toBytes());
60
61
62
void close() {
0 commit comments