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

Fixed invalid handling of slice data in interop_server

parent 26623b3d
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,9 @@ void MaybeEchoMetadata(ServerContext* context) {
if (iter != client_metadata.end()) {
iter = client_metadata.find("user-agent");
if (iter != client_metadata.end()) {
context->AddInitialMetadata(kEchoUserAgentKey, iter->second.data());
context->AddInitialMetadata(
kEchoUserAgentKey,
grpc::string(iter->second.begin(), iter->second.end()));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment