Skip to content

Commit af52cc7

Browse files
authored
Update RNFetchBlobReq.java
1 parent 6923bbb commit af52cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ private void done(Response resp) {
598598
} catch (ClassCastException ex) {
599599
// unexpected response type
600600
if (responseBody != null) {
601-
callback.invoke("Unexpected FileStorage response file: " + responseBody.string(), null);
601+
callback.invoke("Unexpected FileStorage response file: " + responseBody.body().string(), null);
602602
} else {
603603
callback.invoke("Unexpected FileStorage response with no file.", null);
604604
}

0 commit comments

Comments
 (0)