Ignore content type if content has zero length.

This commit is contained in:
dstnbrkr 2011-10-20 11:22:33 -07:00
parent c9546830e0
commit 256704ee96

View file

@ -78,7 +78,7 @@
}
- (BOOL)hasAcceptableContentType {
return !self.acceptableContentTypes || [self.response statusCode] == 204 || [self.acceptableContentTypes containsObject:[self.response MIMEType]];
return !self.acceptableContentTypes || [self.responseData length] == 0 || [self.acceptableContentTypes containsObject:[self.response MIMEType]];
}
#pragma mark - AFHTTPClientOperation