Parent was ignored in exists request

The routing was always set to null right after the parent was set.

Closes #3276
This commit is contained in:
Luca Cavanna 2013-07-01 17:15:17 +02:00
parent 9ce0156d39
commit 2314b8665b
1 changed files with 1 additions and 1 deletions

View File

@ -51,8 +51,8 @@ public class RestHeadAction extends BaseRestHandler {
getRequest.listenerThreaded(false);
getRequest.operationThreaded(true);
getRequest.refresh(request.paramAsBoolean("refresh", getRequest.refresh()));
getRequest.routing(request.param("routing")); // order is important, set it after routing, so it will set the routing
getRequest.parent(request.param("parent"));
getRequest.routing(request.param("routing"));
getRequest.preference(request.param("preference"));
getRequest.realtime(request.paramAsBooleanOptional("realtime", null));
// don't get any fields back...