From b3244d8e571a7fe4582f30661680147b693165f3 Mon Sep 17 00:00:00 2001 From: Jake Boxer Date: Sun, 11 Dec 2011 01:10:01 -0800 Subject: [PATCH] Make JSON requests allow text/javascript content --- AFNetworking/AFJSONRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index c3cbdca..294f724 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -63,7 +63,7 @@ static dispatch_queue_t json_request_operation_processing_queue() { } + (NSSet *)defaultAcceptableContentTypes { - return [NSSet setWithObjects:@"application/json", @"text/json", nil]; + return [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil]; } + (NSSet *)defaultAcceptablePathExtensions {