現象
使用elasticsearch-head發(fā)送請求時會報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時,參照這里