Skip to content
Snippets Groups Projects
Commit f065c744 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

Removed spurious predicate from if branch

the channeld->content_type->key is already consumed by the preceding if.
parent 5b7f6c91
Branches
Tags
No related merge requests found
...@@ -111,8 +111,7 @@ static grpc_mdelem *server_filter(void *user_data, grpc_mdelem *md) { ...@@ -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->http_scheme->key) {
md->key == channeld->content_type->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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment