Skip to content

Commit 3b11117

Browse files
committed
* for AppLozic fix
1 parent 7f82a51 commit 3b11117

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ios/ReactNativeBlobUtilReqBuilder.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ +(void) buildMultipartRequest:(NSDictionary *)options
6666
[request setHTTPBody:postData];
6767
}
6868
// set content-length
69+
//!!!
6970
[mheaders setValue:[NSString stringWithFormat:@"%lu",[postData length]] forKey:@"Content-Length"];
70-
[mheaders setValue:@"100-continue" forKey:@"Expect"];
71+
//[mheaders setValue:@"100-continue" forKey:@"Expect"];
7172
// appaned boundary to content-type
7273
[mheaders setValue:[NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary] forKey:@"content-type"];
7374
[request setHTTPMethod: method];
@@ -191,7 +192,9 @@ +(void) buildFormBody:(NSArray *)form boundary:(NSString *)boundary onComplete:(
191192
void __block (^getFieldData)(id field) = ^(id field)
192193
{
193194
NSString * name = [field valueForKey:@"name"];
194-
__block NSString * content = [field valueForKey:@"data"];
195+
//!!!
196+
//__block NSString * content = [field valueForKey:@"data"];
197+
NSString * content = [field valueForKey:@"data"];
195198
NSString * contentType = [field valueForKey:@"type"];
196199
// skip when the form field `name` or `data` is empty
197200
if(content == nil || name == nil)

0 commit comments

Comments
 (0)