diff --git a/elasticsearch/x-pack/src/main/java/org/elasticsearch/xpack/rest/action/RestXPackInfoAction.java b/elasticsearch/x-pack/src/main/java/org/elasticsearch/xpack/rest/action/RestXPackInfoAction.java index fe24da5acfa..21b70aa010c 100644 --- a/elasticsearch/x-pack/src/main/java/org/elasticsearch/xpack/rest/action/RestXPackInfoAction.java +++ b/elasticsearch/x-pack/src/main/java/org/elasticsearch/xpack/rest/action/RestXPackInfoAction.java @@ -50,7 +50,7 @@ public class RestXPackInfoAction extends XPackRestHandler { // we treat HEAD requests as simple pings to ensure that X-Pack is installed // we still execute the action as we want this request to be authorized if (request.method() == RestRequest.Method.HEAD) { - return new BytesRestResponse(OK); + return new BytesRestResponse(OK, builder); } builder.startObject();