Merge remote-tracking branch 'danielmitterdorfer/free-request-bytes'

Original commit: elastic/x-pack-elasticsearch@91867432c2
This commit is contained in:
Daniel Mitterdorfer 2016-05-09 16:01:21 +02:00
commit 828b1902c5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class RestXPackInfoAction extends XPackRestHandler {
// we treat HEAD requests as simple pings to ensure that X-Pack is installed // 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 // we still execute the action as we want this request to be authorized
if (request.method() == RestRequest.Method.HEAD) { if (request.method() == RestRequest.Method.HEAD) {
return new BytesRestResponse(OK); return new BytesRestResponse(OK, builder);
} }
builder.startObject(); builder.startObject();