Skip to content

Commit

Permalink
fix: postgrest range is not correctly returned
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-thorel-of committed Aug 21, 2024
1 parent d35cda0 commit 765540d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public static HeaderRange of(String rangeString) {
range.offset = Integer.parseInt(matcher.group("offset"));
range.limit = Integer.parseInt(matcher.group("limit"));
String total = matcher.group("total");
if(total.startsWith("*")){
if (total.startsWith("*")) {
range.totalElements = range.limit - range.offset + 1;
}else {
} else {
range.totalElements = Long.parseLong(total);
}
}
Expand Down

0 comments on commit 765540d

Please sign in to comment.