{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
- elasticsearch6用插件elasticsearch-head复合查询中put时报错:{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} 解决方法:
- 进入elasticsearch-head安装目录:
- cd _site
- 找到vendor.js文件,用vim编辑vendor.js文件
- setnumber: 6886行 "application/x-www-form-urlencoded,改成:"application/json;charset=UTF-8"
- setnumber: 7574行 s.contentType === "application/x-www-form-urlencoded" &&,改成:s.contentType === "application/json;charset=UTF-8" &&