Browse Source

Update RNFetchBlobReq.java

pex7 4 years ago
parent
commit
af52cc73e8
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

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

598
                 } catch (ClassCastException ex) {
598
                 } catch (ClassCastException ex) {
599
                     // unexpected response type
599
                     // unexpected response type
600
                     if (responseBody != null) {
600
                     if (responseBody != null) {
601
-                        callback.invoke("Unexpected FileStorage response file: " + responseBody.string(), null);
601
+                        callback.invoke("Unexpected FileStorage response file: " + responseBody.body().string(), null);
602
                     } else {
602
                     } else {
603
                         callback.invoke("Unexpected FileStorage response with no file.", null);
603
                         callback.invoke("Unexpected FileStorage response with no file.", null);
604
                     }
604
                     }