103104105106107108109110111112113
.append("Range: bytes=100-200\n\nbody") .toString() ); final Range range = request.range(); MatcherAssert.assertThat( range.first(), Matchers.is(100L) ); MatcherAssert.assertThat( range.last(), Matchers.is(200L)
128129130131132133134135136137138
.append("Range: bytes=100-\n\nbody") .toString() ); final Range range = request.range(); MatcherAssert.assertThat( range.first(), Matchers.is(100L) ); MatcherAssert.assertThat( range.last(), Matchers.is(Long.MAX_VALUE)