Merge pull request #685 from dongle/master

Added assertion for empty body data in -appendPartWithHeaders:body:
This commit is contained in:
Mattt Thompson 2012-12-17 11:14:06 -08:00
commit a146a3bf66

View file

@ -851,6 +851,8 @@ NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
- (void)appendPartWithHeaders:(NSDictionary *)headers
body:(NSData *)body
{
NSParameterAssert(body);
AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];
bodyPart.stringEncoding = self.stringEncoding;
bodyPart.headers = headers;