intern default authority

pull/15414/head
yang-g 7 years ago
parent b3e3ed3203
commit 11890af5a2
  1. 2
      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;
}

Loading…
Cancel
Save