Merge pull request #685 from dongle/master
Added assertion for empty body data in -appendPartWithHeaders:body:
This commit is contained in:
commit
a146a3bf66
1 changed files with 2 additions and 0 deletions
|
|
@ -851,6 +851,8 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
|
||||||
- (void)appendPartWithHeaders:(NSDictionary *)headers
|
- (void)appendPartWithHeaders:(NSDictionary *)headers
|
||||||
body:(NSData *)body
|
body:(NSData *)body
|
||||||
{
|
{
|
||||||
|
NSParameterAssert(body);
|
||||||
|
|
||||||
AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];
|
AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];
|
||||||
bodyPart.stringEncoding = self.stringEncoding;
|
bodyPart.stringEncoding = self.stringEncoding;
|
||||||
bodyPart.headers = headers;
|
bodyPart.headers = headers;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue