File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ +(void) buildMultipartRequest:(NSDictionary *)options
66
66
[request setHTTPBody: postData];
67
67
}
68
68
// set content-length
69
+ // !!!
69
70
[mheaders setValue: [NSString stringWithFormat: @" %lu " ,[postData length ]] forKey: @" Content-Length" ];
70
- [mheaders setValue: @" 100-continue" forKey: @" Expect" ];
71
+ // [mheaders setValue:@"100-continue" forKey:@"Expect"];
71
72
// appaned boundary to content-type
72
73
[mheaders setValue: [NSString stringWithFormat: @" multipart/form-data; boundary=%@ " , boundary] forKey: @" content-type" ];
73
74
[request setHTTPMethod: method];
@@ -191,7 +192,9 @@ +(void) buildFormBody:(NSArray *)form boundary:(NSString *)boundary onComplete:(
191
192
void __block (^getFieldData)(id field) = ^(id field)
192
193
{
193
194
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" ];
195
198
NSString * contentType = [field valueForKey: @" type" ];
196
199
// skip when the form field `name` or `data` is empty
197
200
if (content == nil || name == nil )
You can’t perform that action at this time.
0 commit comments