Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 9f9f65b

Browse files
authored
Merge pull request #86 from francisco-sanchez-molina/patch-1
Lost content-length header fix
2 parents 472fba3 + 4bbca78 commit 9f9f65b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ public RNFetchBlobBody(String taskId, RNFetchBlobReq.RequestType type, String ra
5959
public MediaType contentType() {
6060
return mime;
6161
}
62-
62+
63+
@Override
64+
public long contentLength() {
65+
return contentLength;
66+
}
67+
6368
@Override
6469
public void writeTo(BufferedSink sink) throws IOException {
6570

0 commit comments

Comments
 (0)