pull/10210/head
Muxi Yan 8 years ago
parent eb6f20128a
commit b4478ff264
  1. 2
      src/core/ext/transport/cronet/transport/cronet_transport.c

@ -655,7 +655,9 @@ static void create_grpc_frame(grpc_slice_buffer *write_slice_buffer,
*pp_write_buffer = write_buffer;
uint8_t *p = (uint8_t *)write_buffer;
/* Append 5 byte header */
/* Compressed flag */
*p++ = (flags & GRPC_WRITE_INTERNAL_COMPRESS) ? 1 : 0;
/* Message length */
*p++ = (uint8_t)(length >> 24);
*p++ = (uint8_t)(length >> 16);
*p++ = (uint8_t)(length >> 8);

Loading…
Cancel
Save