Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 4e91079

Browse files
committed
Add block prefix
1 parent c7a667a commit 4e91079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ios/RNFetchBlobReqBuilder.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ +(void) buildOctetRequest:(NSDictionary *)options
119119
}
120120
else
121121
{
122-
[request setHTTPBody:[NSData dataWithContentsOfFile:orgPath ]];
122+
__block NSData * bodyBytes = [NSData dataWithContentsOfFile:orgPath ];
123+
[request setHTTPBody:bodyBytes];
123124
}
124125
}
125126
// otherwise convert it as BASE64 data string

0 commit comments

Comments
 (0)