head 插件 Content-Type header [application/x-www-form-urlencoded] is not supported

{
  "error": "Content-Type header [application/x-www-form-urlencoded] is not supported",
  "status": 406
}

安装包路径下的 _site/vendor.js

6886行

contentType: "application/x-www-form-urlencoded",

改成

contentType: "application/json;charset=UTF-8",

7573行

var inspectData = s.contentType === "application/x-www-form-urlencoded" &&

改成

var inspectData = s.contentType === "application/json;charset=UTF-8" &&
posted @ 2022-02-19 23:33  月巴左耳东  阅读(326)  评论(0编辑  收藏  举报