Permalink
Browse files

Merge pull request #90 from dstnbrkr/has-content

Check only content length, ignore status code.
  • Loading branch information...
2 parents 180fb9b + c519087 commit 4a6a93e8d46895aa3b4e888f439d2655b1438a94 Mattt Thompson committed Oct 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFNetworking/AFHTTPRequestOperation.m
@@ -75,7 +75,7 @@ - (NSError *)error {
}
- (BOOL)hasContent {
- return [self.responseData length] > 0 || [self.response statusCode] != 204;
+ return [self.responseData length] > 0;
}
- (BOOL)hasAcceptableStatusCode {

0 comments on commit 4a6a93e

Please sign in to comment.