Skip to content

Commit

Permalink
Fix grpc#669
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubén Jesús García-Hernández committed Mar 19, 2024
1 parent 4a043fa commit f542701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/shared/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ List<int> frame(List<int> rawPayload, [Codec? codec]) {
final payloadLength = compressedPayload.length;
final bytes = Uint8List(payloadLength + 5);
final header = bytes.buffer.asByteData(0, 5);
header.setUint8(0, codec == null ? 0 : 1);
header.setUint8(0, (codec == null|| codec.encodingName =="identity") ? 0 : 1);
header.setUint32(1, payloadLength);
bytes.setRange(5, bytes.length, compressedPayload);
return bytes;
Expand Down

0 comments on commit f542701

Please sign in to comment.