使用AFNetworking時遇到這情況
解決方法:
在AFNetworking的源文件AFURLResponseSerialization.m中修改代碼就能解決:
修改文件223行處
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];
為
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];