Ignore content type if content has zero length.
This commit is contained in:
parent
c9546830e0
commit
256704ee96
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)hasAcceptableContentType {
|
- (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
|
#pragma mark - AFHTTPClientOperation
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue