iOS开发问题之unacceptable content-type: text/html}
问题:在对接第三方API接口时,向服务器端请求数据时,发生下面的错误:response.error.data:NSLocalizedDescription=Request failed: unacceptable content-type: text/html}我在iOS中是使用AFNetworking这个第三方网络框架,明明返回的是JSON格式的数据,为什么会出现unacceptable content-type: text/html这样的错误,经过在网络上查找,一个解释是这样的:这不是AFN
原创
2021-04-12 19:32:01 ·
883 阅读 ·
0 评论