pull/10849/head
Muxi Yan 8 years ago
parent 1a138e9629
commit 286b696f81
  1. 5
      src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
  2. 4
      src/core/ext/filters/workarounds/workaround_utils.h

@ -40,7 +40,7 @@
#include "src/core/lib/surface/channel_init.h" #include "src/core/lib/surface/channel_init.h"
#include "src/core/lib/transport/metadata.h" #include "src/core/lib/transport/metadata.h"
typedef struct call_data { typedef struct call_data {
// Receive closures are chained: we inject this closure as the // Receive closures are chained: we inject this closure as the
// recv_initial_metadata_ready up-call on transport_stream_op, and remember to // recv_initial_metadata_ready up-call on transport_stream_op, and remember to
// call our next_recv_initial_metadata_ready member after handling it. // call our next_recv_initial_metadata_ready member after handling it.
@ -187,8 +187,7 @@ static bool parse_user_agent(grpc_mdelem md) {
gpr_free(user_agent_str); gpr_free(user_agent_str);
return (grpc_objc_specifier_seen && cronet_specifier_seen && return (grpc_objc_specifier_seen && cronet_specifier_seen &&
(major_version < 1 || (major_version < 1 || (major_version == 1 && minor_version <= 3)));
(major_version == 1 && minor_version <= 3)));
} }
const grpc_channel_filter grpc_workaround_cronet_compression_filter = { const grpc_channel_filter grpc_workaround_cronet_compression_filter = {

@ -29,8 +29,8 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
#ifndef GRPC_CORE_EXT_FILTERS_WORKAROUNDS_WORKAROUND_UTILS #ifndef GRPC_CORE_EXT_FILTERS_WORKAROUNDS_WORKAROUND_UTILS_H
#define GRPC_CORE_EXT_FILTERS_WORKAROUNDS_WORKAROUND_UTILS #define GRPC_CORE_EXT_FILTERS_WORKAROUNDS_WORKAROUND_UTILS_H
#include "src/core/lib/transport/metadata.h" #include "src/core/lib/transport/metadata.h"

Loading…
Cancel
Save