Your first attempted solution of [AFJSONRequestOperation addAcceptableContentTypes:[NSSet setWithObject:@"application/json-rpc"]];
probably would have worked if you were having this issue with just AFJSONRequestionOperation
but since you are using this client that isn't a subclass of AFHTTPRequestOperation
so it doesn't respond to this method.
That might be a viable solution if you alter the code of the client you are using. In the source code an AFJSONRequestOperation
called operation
is created, if you attempted to use [AFJSONRequestOperation addAcceptableContentTypes:[NSSet setWithObject:@"application/json-rpc"]];
somewhere around here, you may be able to fix the issue.