I am performing a query operation to download all file types from a server using AFHTTPRequestOperationManager.
At the moment, I am doing this:
AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"image/jpeg", @"image/gif", @"image/png", @"application/pdf", ..., nil];
It works well, but I would like to include all types of content in order to avoid some.
Is it possible to initiate valid content types for any type of existing content? Sort of:
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"*", nil];
Thanks.
source share