瀏覽代碼

Removed spurious predicate from if branch

the channeld->content_type->key is already consumed by the preceding if.
David Garcia Quintas 10 年之前
父節點
當前提交
f065c744e3
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;
   } 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. */