解决方法:
修改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"