mirror of https://github.com/grpc/grpc-dart.git
refactor: use Uint8List for sending data over XHR rather than Int8List
This commit is contained in:
parent
20bd1737c4
commit
00a012a55f
|
@ -51,7 +51,7 @@ class XhrTransportStream implements GrpcTransportStream {
|
||||||
: _onError = onError,
|
: _onError = onError,
|
||||||
_onDone = onDone {
|
_onDone = onDone {
|
||||||
_outgoingMessages.stream.map(frame).listen(
|
_outgoingMessages.stream.map(frame).listen(
|
||||||
(data) => _request.send(Int8List.fromList(data).toJS),
|
(data) => _request.send(Uint8List.fromList(data).toJS),
|
||||||
cancelOnError: true,
|
cancelOnError: true,
|
||||||
onError: _onError);
|
onError: _onError);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue