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 a2f0b25 commit 8c9feb5Copy full SHA for 8c9feb5
pkgs/http/lib/src/browser_client.dart
@@ -4,7 +4,6 @@
4
5
import 'dart:async';
6
import 'dart:js_interop';
7
-import 'dart:typed_data';
8
9
import 'package:web/helpers.dart';
10
@@ -79,7 +78,7 @@ class BrowserClient extends BaseClient {
79
78
));
80
return;
81
}
82
- var body = (xhr.response as ByteBuffer).asUint8List();
+ var body = (xhr.response as JSArrayBuffer).toDart.asUint8List();
83
completer.complete(StreamedResponse(
84
ByteStream.fromBytes(body), xhr.status,
85
contentLength: body.length,
0 commit comments