美文网首页
elasticsearch-head 406错误修正

elasticsearch-head 406错误修正

作者: 贪得_3440 | 来源:发表于2020-11-04 13:40 被阅读0次

现象

使用elasticsearch-head发送请求时会报406错误
Content-Type header [application/x-www-form-urlencoded] is not supported

解决方式

修改elasticsearch-head的_site/vendor.js文件
将6886行与7574行的

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

修改为

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

如果使用docker,容器没有vim时,参照这里

相关文章

网友评论

      本文标题:elasticsearch-head 406错误修正

      本文链接:https://www.haomeiwen.com/subject/mllgvktx.html