Browse Source

Removed spurious predicate from if branch

the channeld->content_type->key is already consumed by the preceding if.
David Garcia Quintas 10 years ago
parent
commit
f065c744e3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/core/channel/http_server_filter.c

+ 1 - 2
src/core/channel/http_server_filter.c

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