Skip to content

Commit 2de45c4

Browse files
author
oleksiys
committed
[1.8.x] + fix the test to echo only read part of the byte[]
1 parent f15a46a commit 2de45c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/ning/http/client/async/BasicHttpsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void handle(String pathInContext, Request r, HttpServletRequest httpReque
128128
pos += read;
129129
}
130130

131-
httpResponse.getOutputStream().write(bytes);
131+
httpResponse.getOutputStream().write(bytes, 0, pos + 1); // (pos + 1) because last read added -1
132132
}
133133

134134
httpResponse.setStatus(200);

0 commit comments

Comments
 (0)