搭建es与head后创建索引遇到{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
1、进入容器 dockerexec -it id bash ;
2、vim /usr/src/app/_site/vendor.js
3、/application 修改application/x-www-form-urlencoded 为application/json;charset=UTF-8;
4、重启容器
标签:urlencode,www,form,406,错误代码,application,索引,报错 From: https://www.cnblogs.com/innocenter/p/16735549.html