Browse Source

Add block prefix

Ben Hsieh 8 years ago
parent
commit
4e91079b14
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/ios/RNFetchBlobReqBuilder.m

+ 2
- 1
src/ios/RNFetchBlobReqBuilder.m View File

119
                     }
119
                     }
120
                     else
120
                     else
121
                     {
121
                     {
122
-                        [request setHTTPBody:[NSData dataWithContentsOfFile:orgPath ]];
122
+                        __block NSData * bodyBytes = [NSData dataWithContentsOfFile:orgPath ];
123
+                        [request setHTTPBody:bodyBytes];
123
                     }
124
                     }
124
                 }
125
                 }
125
                 // otherwise convert it as BASE64 data string
126
                 // otherwise convert it as BASE64 data string