We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe5390 commit 54def5aCopy full SHA for 54def5a
src/main/java/com/ning/http/client/multipart/MultipartBody.java
@@ -76,12 +76,12 @@ public byte[] getBoundary() {
76
// RandomAccessBody API, suited for HTTP but not for HTTPS
77
public long transferTo(long position, WritableByteChannel target) throws IOException {
78
79
- long overallLength = 0;
80
-
81
if (transfertDone) {
82
- return contentLength;
+ return -1;
83
}
84
+ long overallLength = 0;
+
85
for (Part part : parts) {
86
overallLength += part.write(target, boundary);
87
0 commit comments