diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-08 15:22:05 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-02-08 15:22:05 -0800 |
commit | 5fcc5af0946fa0eb2b03146bb48afa91ceabe73c (patch) | |
tree | c08c4bfafff2954316a4b50c23c8285ee91a4757 /src/core/lib/channel | |
parent | 547974e47857e2b5099a4d16b17f271a4cb88ca1 (diff) |
Should only do host-->:authority if there is no :authority
Diffstat (limited to 'src/core/lib/channel')
-rw-r--r-- | src/core/lib/channel/http_server_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/channel/http_server_filter.c b/src/core/lib/channel/http_server_filter.c index 3f992977c0..b475dd6b86 100644 --- a/src/core/lib/channel/http_server_filter.c +++ b/src/core/lib/channel/http_server_filter.c @@ -198,10 +198,10 @@ static grpc_error *server_filter_incoming_metadata(grpc_exec_ctx *exec_ctx, GRPC_ERROR_STR_KEY, ":path")); } - if (b->idx.named.host != NULL) { + if (b->idx.named.host != NULL && b->idx.named.authority == NULL) { add_error( error_name, &error, - grpc_metadata_batch_substitute( + grpc_metadata_batch_add_head( exec_ctx, b, b->idx.named.host, grpc_mdelem_from_slices( exec_ctx, GRPC_MDSTR_AUTHORITY, |