File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,6 @@ - (NSString *)buildHeaderWithDictionnary:(NSDictionary *)params
351
351
}
352
352
}
353
353
}
354
-
355
354
return (query);
356
355
}
357
356
@@ -362,8 +361,9 @@ - (NSData *)buildPostParams:(id)params
362
361
{
363
362
if (_contentType != nil )
364
363
postData = [[self formatFromContentType: params] dataUsingEncoding: NSUTF8StringEncoding];
365
- else
366
- postData = [[OAuthIORequest encodeURL: [self buildQueryWithDictionnary: params]] dataUsingEncoding: NSUTF8StringEncoding];
364
+ else {
365
+ postData = [[self buildQueryWithDictionnary: params] dataUsingEncoding: NSUTF8StringEncoding];
366
+ }
367
367
}
368
368
else if ([params isKindOfClass: [NSString class ]])
369
369
postData = [params dataUsingEncoding: NSUTF8StringEncoding];
@@ -372,7 +372,8 @@ - (NSData *)buildPostParams:(id)params
372
372
373
373
NSString *contentLength = [NSString stringWithFormat: @" %lu " , (unsigned long )[postData length ]];
374
374
[self addHeaderWithKey: @" Content-Length" andValue: contentLength];
375
-
375
+
376
+
376
377
return (postData);
377
378
}
378
379
You can’t perform that action at this time.
0 commit comments