瀏覽代碼

Add block prefix

Ben Hsieh 8 年之前
父節點
當前提交
4e91079b14
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/ios/RNFetchBlobReqBuilder.m

+ 2
- 1
src/ios/RNFetchBlobReqBuilder.m 查看文件

@@ -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