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,7 +119,8 @@
119 119
                     }
120 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 126
                 // otherwise convert it as BASE64 data string