diff options
author | Yang Gao <yangg@google.com> | 2018-05-18 14:13:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 14:13:54 -0700 |
commit | a36a2b70bbc2cdc349d6081cb131475d88495586 (patch) | |
tree | 80ac1ba5fe244622e73a8230d54c3cf015af0fd3 | |
parent | 61fb320561d53df1eba51c50096c1a3ac0199e42 (diff) | |
parent | 11890af5a2b9f00022b55f4d896918410d07b43e (diff) |
Merge pull request #15414 from yang-g/intern_authority
intern default authority
-rw-r--r-- | src/core/ext/filters/http/client_authority_filter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/filters/http/client_authority_filter.cc b/src/core/ext/filters/http/client_authority_filter.cc index 63b9150aec..ddc939ed12 100644 --- a/src/core/ext/filters/http/client_authority_filter.cc +++ b/src/core/ext/filters/http/client_authority_filter.cc @@ -103,7 +103,7 @@ grpc_error* init_channel_elem(grpc_channel_element* elem, "GRPC_ARG_DEFAULT_AUTHORITY channel arg. must be a string"); } chand->default_authority = - grpc_slice_from_copied_string(default_authority_str); + grpc_slice_intern(grpc_slice_from_static_string(default_authority_str)); GPR_ASSERT(!args->is_last); return GRPC_ERROR_NONE; } |