Removed spurious predicate from if branch

the channeld->content_type->key is already consumed by the preceding if.
pull/3405/head
David Garcia Quintas 9 years ago
parent 5b7f6c9102
commit f065c744e3
  1. 3
      src/core/channel/http_server_filter.c

@ -111,8 +111,7 @@ static grpc_mdelem *server_filter(void *user_data, grpc_mdelem *md) {
return NULL;
} else if (md->key == channeld->te_trailers->key ||
md->key == channeld->method_post->key ||
md->key == channeld->http_scheme->key ||
md->key == channeld->content_type->key) {
md->key == channeld->http_scheme->key) {
gpr_log(GPR_ERROR, "Invalid %s: header: '%s'",
grpc_mdstr_as_c_string(md->key), grpc_mdstr_as_c_string(md->value));
/* swallow it and error everything out. */

Loading…
Cancel
Save