Skip to content

Commit 2efff60

Browse files
committed
Rewinding NettyResponse's BodyPart ByteBuffer
1 parent 1b52e32 commit 2efff60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/main/java/org/asynchttpclient/netty/NettyResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public ByteBuffer getResponseBodyAsByteBuffer() {
179179
for (HttpResponseBodyPart part : bodyParts)
180180
target.put(part.getBodyPartBytes());
181181

182+
target.rewind();
182183
return target;
183184
}
184185

0 commit comments

Comments
 (0)