From c5190878a93e5296036df3607afe78db75846c84 Mon Sep 17 00:00:00 2001 From: Dustin Barker Date: Tue, 25 Oct 2011 10:08:02 -0700 Subject: [PATCH] Check only content length, ignore status code. Per discussion here: https://github.com/gowalla/AFNetworking/pull/88#issuecomment-2486149. --- AFNetworking/AFHTTPRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index b7d72a3..ceaa39b 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -75,7 +75,7 @@ } - (BOOL)hasContent { - return [self.responseData length] > 0 || [self.response statusCode] != 204; + return [self.responseData length] > 0; } - (BOOL)hasAcceptableStatusCode {