Skip to content

Commit d353627

Browse files
In RestNodesStatsAction, make the XContent params to channel.request(), which is the value it would have had before this change
1 parent a95a3d2 commit d353627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestNodesStatsAction.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
188188

189189
return channel -> new RestCancellableNodeClient(client, request.getHttpChannel()).admin()
190190
.cluster()
191-
.nodesStats(nodesStatsRequest, new RestRefCountedChunkedToXContentListener<>(channel, xContentParamsForRequest(request)));
191+
.nodesStats(
192+
nodesStatsRequest,
193+
new RestRefCountedChunkedToXContentListener<>(channel, xContentParamsForRequest(channel.request()))
194+
);
192195
}
193196

194197
private ToXContent.DelegatingMapParams xContentParamsForRequest(RestRequest request) {

0 commit comments

Comments
 (0)