{"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" &&

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

人生確是無常的,不過人生的可愛處也多半就在這無常。 —— 李霽野


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM