Skip to content

Commit f542701

Browse files
author
Rubén Jesús García-Hernández
committed
Fix grpc#669
1 parent 4a043fa commit f542701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/shared/message.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ List<int> frame(List<int> rawPayload, [Codec? codec]) {
6868
final payloadLength = compressedPayload.length;
6969
final bytes = Uint8List(payloadLength + 5);
7070
final header = bytes.buffer.asByteData(0, 5);
71-
header.setUint8(0, codec == null ? 0 : 1);
71+
header.setUint8(0, (codec == null|| codec.encodingName =="identity") ? 0 : 1);
7272
header.setUint32(1, payloadLength);
7373
bytes.setRange(5, bytes.length, compressedPayload);
7474
return bytes;

0 commit comments

Comments
 (0)