Skip to content

Commit 25a947c

Browse files
committed
fix: Fix parsing content length header
1 parent 6c79567 commit 25a947c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/box/sdk/BoxAPIResponseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void testJsonResponseToString() {
147147

148148
@Test
149149
public void testLargeBinaryResponseContentLength() {
150-
long contentLength = 2352815193L;
150+
long contentLength = Integer.MAX_VALUE + 10000L;
151151
Map<String, List<String>> headers = new TreeMap<>();
152152
headers.put("content-length", singletonList(Long.toString(contentLength)));
153153
LargeByteArrayInputStream inputStream = new LargeByteArrayInputStream(contentLength);

0 commit comments

Comments
 (0)