Make JSON requests allow text/javascript content #148

Merged
merged 1 commit into from Dec 13, 2011
@@ -63,7 +63,7 @@ + (AFJSONRequestOperation *)JSONRequestOperationWithRequest:(NSURLRequest *)urlR
}
+ (NSSet *)defaultAcceptableContentTypes {
- return [NSSet setWithObjects:@"application/json", @"text/json", nil];
+ return [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];
}
+ (NSSet *)defaultAcceptablePathExtensions {