Skip to content

Commit 117a43b

Browse files
author
oleksiys
committed
[1.9.x] + fix the test to echo only read part of the byte[]
1 parent 3397bfd commit 117a43b

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
@@ -134,7 +134,7 @@ public void handle(String pathInContext, Request r, HttpServletRequest httpReque
134134
pos += read;
135135
}
136136

137-
httpResponse.getOutputStream().write(bytes);
137+
httpResponse.getOutputStream().write(bytes, 0, pos + 1); // (pos + 1) because last read added -1
138138
}
139139

140140
httpResponse.setStatus(200);

0 commit comments

Comments
 (0)