diff --git a/src/main/java/org/elasticsearch/client/transport/TransportClientNodesService.java b/src/main/java/org/elasticsearch/client/transport/TransportClientNodesService.java index 37d3ed137e0..eaa2884dc6f 100644 --- a/src/main/java/org/elasticsearch/client/transport/TransportClientNodesService.java +++ b/src/main/java/org/elasticsearch/client/transport/TransportClientNodesService.java @@ -348,7 +348,7 @@ public class TransportClientNodesService extends AbstractComponent { } try { NodesInfoResponse nodeInfo = transportService.submitRequest(listedNode, NodesInfoAction.NAME, - headers.applyTo(Requests.nodesInfoRequest("_local")), + headers.applyTo(Requests.nodesInfoRequest("_local").clear()), TransportRequestOptions.options().withType(TransportRequestOptions.Type.STATE).withTimeout(pingTimeout), new FutureTransportResponseHandler() { @Override