Skip to content

Commit

Permalink
Adding assertion for empty data in -appendPartWithHeaders:body:
Browse files Browse the repository at this point in the history
  • Loading branch information
dongle committed Dec 17, 2012
1 parent 0f35164 commit fa0fc53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AFNetworking/AFHTTPClient.m
Expand Up @@ -851,6 +851,8 @@ - (void)appendPartWithFormData:(NSData *)data
- (void)appendPartWithHeaders:(NSDictionary *)headers
body:(NSData *)body
{
NSParameterAssert(body);

AFHTTPBodyPart *bodyPart = [[AFHTTPBodyPart alloc] init];
bodyPart.stringEncoding = self.stringEncoding;
bodyPart.headers = headers;
Expand Down

0 comments on commit fa0fc53

Please sign in to comment.