From 000010f850cdc487e61d85f176e927dbf254a8f2 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Thu, 15 Nov 2012 10:05:55 -0800 Subject: [PATCH] Adding missing scan of '/' separator in content type string --- AFNetworking/AFHTTPRequestOperation.m | 1 + 1 file changed, 1 insertion(+) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index 879c55e..37b0e33 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -58,6 +58,7 @@ static void AFGetMediaTypeAndSubtypeWithString(NSString *string, NSString **type NSScanner *scanner = [NSScanner scannerWithString:string]; [scanner setCharactersToBeSkipped:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; [scanner scanUpToString:@"/" intoString:type]; + [scanner scanString:@"/" intoString:nil]; [scanner scanUpToString:@";" intoString:subtype]; }