Skip to content

Commit f22ad62

Browse files
author
Stephane Landelle
committed
Fix build
1 parent 6fd6367 commit f22ad62

File tree

1 file changed

+1
-1
lines changed
  • providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/body

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/body/BodyFileRegion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public long transfered() {
5252

5353
@Override
5454
public long transferTo(WritableByteChannel target, long position) throws IOException {
55-
long written = body.transferTo(position, Long.MAX_VALUE, target);
55+
long written = body.transferTo(position, target);
5656
if (written > 0) {
5757
transfered += written;
5858
}

0 commit comments

Comments
 (0)