NSLocalizedDescription=Request f
2016-06-23 本文已影响47人
行走的风车
解决方法:
修改AFNetworking中AFURLResponseSerialization.m文件
在226行,将
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript", nil];
改成
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html",@"text/json",@"text/javascript", nil];
增加了一个@"text/html"
