Reputation: 514
I would like to add
curl -H "Accept: application/json"
to request that Iam sending thru AFNetworking on ios.
I don't know how to add it.
Thanks
Upvotes: 0
Views: 136
Reputation: 641
you have to added this text in AFURLResponseSerialization.m file
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/plain",@"text/html", nil];
Upvotes: 2