Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from dstnbrkr/has-content
Browse files Browse the repository at this point in the history
Check only content length, ignore status code.
  • Loading branch information
Mattt Thompson committed Oct 25, 2011
2 parents 180fb9b + c519087 commit 4a6a93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFHTTPRequestOperation.m
Expand Up @@ -75,7 +75,7 @@ - (NSError *)error {
}

- (BOOL)hasContent {
return [self.responseData length] > 0 || [self.response statusCode] != 204;
return [self.responseData length] > 0;
}

- (BOOL)hasAcceptableStatusCode {
Expand Down

0 comments on commit 4a6a93e

Please sign in to comment.