下面是百度出来的答案:
I also encountered the same problem. This means that your
server is sending "text/html"instead ofthe already
supported types. After a little search, my solution was
to add "text/html"to acceptableContentTypes setin
AFURLResponseSerialization class. Just search for"acceptableContentTypes"and add @"text/html"totheset
change the tpe fromthe server, butforthat you will hade to talk withthe server team.
I hope this helps you. Best regards and less bugs as
possible inthe code.
op.responseSerializer.acceptableContentTypes = [NSSet
setWithObject:@"text/html”];