Skip to content

Commit efa44fa

Browse files
chillaqsanzmauro
andauthored
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
Co-authored-by: Mauro Sanz <51236193+sanzmauro@users.noreply.github.com>
1 parent d96a62d commit efa44fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/java/io/split/client/HttpSplitChangeFetcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public SplitChange fetch(long since, long sinceRBS, FetchOptions options) {
9898
}
9999

100100
if (specVersion.equals(Spec.SPEC_1_1)) {
101-
splitChange = convertBodyToOldSpec(response.body());
102-
} else {
101+
return Json.fromJson(response.body(), SplitChangesOldPayloadDto.class).toSplitChange();
102+
}
103103
if (_lastProxyCheckTimestamp != 0) {
104104
splitChange.clearCache = true;
105105
_lastProxyCheckTimestamp = 0L;

0 commit comments

Comments
 (0)