Browse Source

Merge pull request #86 from francisco-sanchez-molina/patch-1

Lost content-length header fix
wkh237 8 years ago
parent
commit
9f9f65bdab
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

+ 6
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java View File

59
     public MediaType contentType() {
59
     public MediaType contentType() {
60
         return mime;
60
         return mime;
61
     }
61
     }
62
-
62
+    
63
+    @Override
64
+    public long contentLength() {
65
+        return contentLength;
66
+    }
67
+    
63
     @Override
68
     @Override
64
     public void writeTo(BufferedSink sink) throws IOException {
69
     public void writeTo(BufferedSink sink) throws IOException {
65
 
70