Stop unconditionally surfacing user agent to server

pull/16558/head
ncteisen 6 years ago
parent a1f5c0942d
commit 5e054bf11e
  1. 4
      src/core/ext/filters/http/server/http_server_filter.cc

@ -262,6 +262,10 @@ static grpc_error* hs_filter_incoming_metadata(grpc_call_element* elem,
GRPC_ERROR_STR_KEY, grpc_slice_from_static_string(":authority"))); GRPC_ERROR_STR_KEY, grpc_slice_from_static_string(":authority")));
} }
if (b->idx.named.user_agent != nullptr) {
grpc_metadata_batch_remove(b, b->idx.named.user_agent);
}
return error; return error;
} }

Loading…
Cancel
Save