refactor: use Uint8List for sending data over XHR rather than Int8List

This commit is contained in:
Aran Donohue 2024-12-16 09:15:03 -08:00
parent 20bd1737c4
commit 00a012a55f
No known key found for this signature in database
GPG Key ID: EA98761C2C20A998
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class XhrTransportStream implements GrpcTransportStream {
: _onError = onError,
_onDone = onDone {
_outgoingMessages.stream.map(frame).listen(
(data) => _request.send(Int8List.fromList(data).toJS),
(data) => _request.send(Uint8List.fromList(data).toJS),
cancelOnError: true,
onError: _onError);