iOS RestKit POST响应内容类型 - 未正确设置

时间:2015-06-09 14:15:19

标签: php ios restkit

我设置

[objectManager setAcceptHeaderWithMIMEType:@"text/json"];

&安培;在PHP服务器脚本

header('content-type:text/json;charset=utf-8');

但仍然得到

Error: .... NSLocalizedDescription=Expected content type {(
    "application/x-www-form-urlencoded",
    "application/json"
)}, got text/json}

0 个答案:

没有答案