magnetsystems / rest2mobile

Home repository for Magnet rest2mobile
developer.magnet.com
105 stars 8 forks source link

Non application/json content type #20

Closed MaximKeegan closed 9 years ago

MaximKeegan commented 9 years ago

I'm receiving from server content-type: application/hal+json;charset=UTF-8. And app crashes with

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Assertion failed with expression ([responseObject isKindOfClass:[NSDictionary class]]) in MMRestTransporter.m:480 -[MMRestTransporter executeSuccessBlock:platformReturnType:controllerReturnType:responseObject:responseClass:]. responseObject should be a dictionary'

Because AFNetworking return nil for non acceptable content type. It's possible to set acceptable content type for request?

MaximKeegan commented 9 years ago

Moved magnetsystems/r2m-sdk-ios#5