zoukankan      html  css  js  c++  java
  • {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

    ElasticSearch-head 查询报 406错误码

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

    解决方法:

    1、进入head安装目录;

    2、cd _site/

    3、编辑vendor.js  共有两处

          ①. 6886行   contentType: "application/x-www-form-urlencoded

               改成

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

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

            改成

                var inspectData = s.contentType === "application/json;charset=UTF-8" &&

    人生确是无常的,不过人生的可爱处也多半就在这无常。 —— 李霁野

  • 相关阅读:
    单例类
    日期类2
    日历类
    日期转换类
    抓取网页内容并截图
    关于计时器与多线程
    让页面上图片不变形
    Thread 调用方法的方式
    语音放大缩小
    阻止Enter键回发到服务端Asp.net
  • 原文地址:https://www.cnblogs.com/afeige/p/10771176.html
Copyright © 2011-2022 走看看