aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2016-10-05 14:58:32 -0700
committerGravatar GitHub <noreply@github.com>2016-10-05 14:58:32 -0700
commitc43aa51fb0a106688a46bb15c951ee0b0b768f30 (patch)
tree6708137f3cfa8e50c96c309adec87865c6871d09 /src/core/lib
parentba46906c925e95b01b299e048441b734d70493b7 (diff)
parenta3570f22d06ce2aa3bc6bf20784b79243db935e8 (diff)
Merge pull request #7984 from lizan/byte_buffer_compression
Fix grpc_byte_buffer_copy to copy compression algorithm
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/surface/byte_buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/surface/byte_buffer.c b/src/core/lib/surface/byte_buffer.c
index a093a37af3..054a6e6c58 100644
--- a/src/core/lib/surface/byte_buffer.c
+++ b/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);
}