Skip to content

Commit c17372b

Browse files
committed
polish
1 parent 0cfee56 commit c17372b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ private SplitChange convertBodyToOldSpec(String body) {
118118
private URI buildURL(FetchOptions options, long since, long sinceRBS) throws URISyntaxException {
119119
URIBuilder uriBuilder = new URIBuilder(_target).addParameter(SPEC, "" + specVersion);
120120
uriBuilder.addParameter(SINCE, "" + since);
121-
uriBuilder.addParameter(RB_SINCE, "" + sinceRBS);
121+
if (specVersion.equals(SPEC_1_3)) {
122+
uriBuilder.addParameter(RB_SINCE, "" + sinceRBS);
123+
}
122124
if (!options.flagSetsFilter().isEmpty()) {
123125
uriBuilder.addParameter(SETS, "" + options.flagSetsFilter());
124126
}

0 commit comments

Comments
 (0)