Explorar el Código

Update RNFetchBlobReq.java

pex7 hace 4 años
padre
commit
af52cc73e8
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Ver fichero

@@ -598,7 +598,7 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
598 598
                 } catch (ClassCastException ex) {
599 599
                     // unexpected response type
600 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 602
                     } else {
603 603
                         callback.invoke("Unexpected FileStorage response with no file.", null);
604 604
                     }