aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c b/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
index 41a91204b2..af30d21141 100644
--- a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
+++ b/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
@@ -208,12 +208,7 @@ static bool register_workaround_cronet_compression(
if (a == NULL) {
return true;
}
- if (a->type != GRPC_ARG_INTEGER) {
- gpr_log(GPR_ERROR, "%s ignored: it must be an integer",
- GRPC_ARG_WORKAROUND_CRONET_COMPRESSION);
- return true;
- }
- if (a->value.integer == 0) {
+ if (grpc_channel_arg_get_bool(a, false) == false) {
return true;
}
grpc_enable_workaround(GRPC_WORKAROUND_ID_CRONET_COMPRESSION);