Request failed: unacceptable content-type: text/html

今天在使用YTKNetWorking 解析数据时,返回错误信息   "Request failed: unacceptable content-type: text/html" -----

“请求失败:不可接受的内容类型:text/html”,经过排查 在"AFURLResponseSerialization.h" 的230 行左右增加响应的

@"application/json", @"text/json", @"text/javascript",@"text/plain",@"text/html",@"application/problem+json"

猜你喜欢

转载自blog.csdn.net/u014305730/article/details/80019980