From c6735ffb76432fe75c419ce11284f4d333434e74 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Thu, 20 Oct 2011 13:03:32 -0500 Subject: [PATCH] Pedantically reordering conditions for acceptable content type --- AFNetworking/AFHTTPRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index af988fd..32f815f 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -78,7 +78,7 @@ } - (BOOL)hasAcceptableContentType { - return !self.acceptableContentTypes || [self.response statusCode] == 204 || [self.acceptableContentTypes containsObject:[self.response MIMEType]]; + return !self.acceptableContentTypes || [self.acceptableContentTypes containsObject:[self.response MIMEType]] || [self.response statusCode] == 204; } #pragma mark - AFHTTPClientOperation