Check only content length, ignore status code.
Per discussion here: https://github.com/gowalla/AFNetworking/pull/88#issuecomment-2486149.
This commit is contained in:
parent
180fb9bb03
commit
c5190878a9
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@
|
|||
}
|
||||
|
||||
- (BOOL)hasContent {
|
||||
return [self.responseData length] > 0 || [self.response statusCode] != 204;
|
||||
return [self.responseData length] > 0;
|
||||
}
|
||||
|
||||
- (BOOL)hasAcceptableStatusCode {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue