remvoing restriction that prevents activity count to be returned when if-modified-since header is present

4.x.x
Ace 4 years ago
parent ada570f0a0
commit b1d95af5b0

@ -298,11 +298,11 @@ public class ActivityProviderServiceImpl implements ActivityInfoProviderService
} }
activityList.setList(activities); activityList.setList(activities);
activityList.setCount(count); activityList.setCount(count);
if (activities == null || activities.size() == 0) { // if (activities == null || activities.size() == 0) {
if (isIfModifiedSinceSet) { // if (isIfModifiedSinceSet) {
return Response.notModified().build(); // return Response.notModified().build();
} // }
} // }
return Response.ok().entity(activityList).build(); return Response.ok().entity(activityList).build();
} catch (OperationManagementException e) { } catch (OperationManagementException e) {
String msg String msg

Loading…
Cancel
Save