Merge pull request #7984 from lizan/byte_buffer_compression

Fix grpc_byte_buffer_copy to copy compression algorithm
pull/8299/head
David G. Quintas 9 years ago committed by GitHub
commit c43aa51fb0
  1. 5
      src/core/lib/surface/byte_buffer.c

@ -72,8 +72,9 @@ grpc_byte_buffer *grpc_raw_byte_buffer_from_reader(
grpc_byte_buffer *grpc_byte_buffer_copy(grpc_byte_buffer *bb) {
switch (bb->type) {
case GRPC_BB_RAW:
return grpc_raw_byte_buffer_create(bb->data.raw.slice_buffer.slices,
bb->data.raw.slice_buffer.count);
return grpc_raw_compressed_byte_buffer_create(
bb->data.raw.slice_buffer.slices, bb->data.raw.slice_buffer.count,
bb->data.raw.compression);
}
GPR_UNREACHABLE_CODE(return NULL);
}

Loading…
Cancel
Save