为了账号安全,请及时绑定邮箱和手机立即绑定

"status": 406 Content-Type header [text/plain] is not supported

创建索引报错

请求方式: put

{  
  "title": "My first blog entry",  
  "text":  "Just trying this out...",  
  "date":  "2014/01/01"  


返回值

{
    "error": "Content-Type header [text/plain] is not supported",
    "status": 406
}


正在回答

1 回答

header 设置错了,应该是 application/json

如果是用 postman 的话,可以进入Body,然后选择 raw JSON(application/json)格式

http://img1.sycdn.imooc.com//5a9e012900019e0106390250.jpg



1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

"status": 406 Content-Type header [text/plain] is not supported

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号