首页 > 代码库 > AFNetworking 2.0 unacceptable content-type

AFNetworking 2.0 unacceptable content-type

使用AFNetworking 2.0 请求数据时出现错误 Request failed: unacceptable content-type: text/html 解决方法

manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];


AFNetworking 2.0 unacceptable content-type