Skip to content

Commit

Permalink
Fixes #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Radtke committed Dec 18, 2021
1 parent e5a0bc2 commit e73e279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ private void done(Response resp) {
ReactNativeBlobUtilFileResp ReactNativeBlobUtilFileResp;

try {
ReactNativeBlobUtilFileResp = (ReactNativeBlobUtilFileResp) responseBody;
ReactNativeBlobUtilFileResp = new ReactNativeBlobUtilFileResp(responseBody);
} catch (ClassCastException ex) {
// unexpected response type
if (responseBody != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public class ReactNativeBlobUtilFileResp extends ResponseBody {
FileOutputStream ofStream;
boolean isEndMarkerReceived;

public ReactNativeBlobUtilFileResp(ResponseBody body) {
super();
this.originalBody = body;
}

public ReactNativeBlobUtilFileResp(ReactApplicationContext ctx, String taskId, ResponseBody body, String path, boolean overwrite) throws IOException {
super();
this.rctContext = ctx;
Expand Down

0 comments on commit e73e279

Please sign in to comment.